diff --git a/virtual-display-driver/src/direct_3d_device.rs b/virtual-display-driver/src/direct_3d_device.rs index 90104527..f3cb55e3 100644 --- a/virtual-display-driver/src/direct_3d_device.rs +++ b/virtual-display-driver/src/direct_3d_device.rs @@ -3,7 +3,7 @@ use windows::{ Win32::{ Foundation::LUID, Graphics::{ - Direct3D::D3D_DRIVER_TYPE_UNKNOWN, + Direct3D::D3D_DRIVER_TYPE_HARDWARE, Direct3D11::{ D3D11CreateDevice, ID3D11Device, ID3D11DeviceContext, D3D11_CREATE_DEVICE_BGRA_SUPPORT, D3D11_SDK_VERSION, @@ -48,7 +48,7 @@ impl Direct3DDevice { unsafe { D3D11CreateDevice( &adapter, - D3D_DRIVER_TYPE_UNKNOWN, + D3D_DRIVER_TYPE_HARDWARE, None, D3D11_CREATE_DEVICE_BGRA_SUPPORT, None,