diff --git a/src/d3d11.rs b/src/d3d11.rs index 8670ac5..cd7d64d 100644 --- a/src/d3d11.rs +++ b/src/d3d11.rs @@ -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); }