瀏覽代碼

Fehler behoben

Kolja Strohm 5 年之前
父節點
當前提交
fff68c3691
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      DX11GraphicsApi.cpp

+ 1 - 1
DX11GraphicsApi.cpp

@@ -914,7 +914,7 @@ bool DirectX11::isAvailable()
             ID3D11DeviceContext *context = 0;
             D3D_FEATURE_LEVEL level = D3D_FEATURE_LEVEL_11_0;
             if( ( dxgiAdapterDesc1.Flags & DXGI_ADAPTER_FLAG_SOFTWARE ) == 0 &&
-                SUCCEEDED( createDevice( current, D3D_DRIVER_TYPE_HARDWARE, 0, flag, &level, 1, D3D11_SDK_VERSION, &device, 0, &context ) ) )
+                SUCCEEDED( createDevice( current, D3D_DRIVER_TYPE_UNKNOWN, 0, flag, &level, 1, D3D11_SDK_VERSION, &device, 0, &context ) ) )
             {
                 context->Release();
                 device->Release();