瀏覽代碼

DX11: Fixed device creation flags.

Branimir Karadžić 11 年之前
父節點
當前提交
1f696d2f7f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/renderer_d3d11.cpp

+ 1 - 1
src/renderer_d3d11.cpp

@@ -666,7 +666,7 @@ RENDERDOC_IMPORT
 			};
 			};
 
 
 			uint32_t flags = D3D11_CREATE_DEVICE_SINGLETHREADED
 			uint32_t flags = D3D11_CREATE_DEVICE_SINGLETHREADED
-				| BX_ENABLED(BGFX_CONFIG_DEBUG) ? D3D11_CREATE_DEVICE_DEBUG : 0
+				| (BX_ENABLED(BGFX_CONFIG_DEBUG) ? D3D11_CREATE_DEVICE_DEBUG : 0)
 				;
 				;
 
 
 			D3D_FEATURE_LEVEL featureLevel;
 			D3D_FEATURE_LEVEL featureLevel;