Skip to content

Commit

Permalink
limit supported D3D_FEATURE_LEVEL only to D3D12 (#603)
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeevPavel authored Oct 14, 2022
1 parent 044ea3b commit ae46255
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions skiko/src/awtMain/cpp/windows/directXRedrawer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -261,12 +261,11 @@ extern "C"
}
gr_cp<IDXGIAdapter1> adapter((IDXGIAdapter1 *) adapterPtr);

D3D_FEATURE_LEVEL maxSupportedFeatureLevel = D3D_FEATURE_LEVEL_11_0;
D3D_FEATURE_LEVEL maxSupportedFeatureLevel = D3D_FEATURE_LEVEL_12_0;
D3D_FEATURE_LEVEL featureLevels[] = {
// TODO add D3D_FEATURE_LEVEL_12_2
D3D_FEATURE_LEVEL_12_1,
D3D_FEATURE_LEVEL_12_0,
D3D_FEATURE_LEVEL_11_1,
D3D_FEATURE_LEVEL_11_0
D3D_FEATURE_LEVEL_12_0
};

for (int i = 0; i < _countof(featureLevels); i++) {
Expand Down

0 comments on commit ae46255

Please sign in to comment.