Skip to content

Commit

Permalink
Lower the level to D3D_FEATURE_LEVEL_11_0
Browse files Browse the repository at this point in the history
  • Loading branch information
mycrl committed Aug 7, 2024
1 parent b44a711 commit 62c0703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/d3d11.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ pub fn create_d3d_device() -> Result<(ID3D11Device, ID3D11DeviceContext), Error>
)?;
};

if feature_level != D3D_FEATURE_LEVEL_11_1 {
if feature_level.0 < D3D_FEATURE_LEVEL_11_0.0 {
return Err(Error::FeatureLevelNotSatisfied);
}

Expand Down

0 comments on commit 62c0703

Please sign in to comment.