From 62c0703d229c7cf305c2f2e01166f5c316e4f95b Mon Sep 17 00:00:00 2001 From: Lazy Panda Date: Thu, 8 Aug 2024 03:12:44 +0800 Subject: [PATCH] Lower the level to D3D_FEATURE_LEVEL_11_0 --- src/d3d11.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }