Branimir Karadžić 8 years ago
parent
commit
af274cfddf
1 changed files with 9 additions and 5 deletions
  1. 9 5
      src/renderer_d3d12.cpp

+ 9 - 5
src/renderer_d3d12.cpp

@@ -732,13 +732,17 @@ namespace bgfx { namespace d3d12
 				{
 					debug0->EnableDebugLayer();
 
-					ID3D12Debug1* debug1;
-					hr = debug0->QueryInterface(IID_ID3D12Debug1, (void**)&debug1);
-	
-					if (SUCCEEDED(hr) )
+#if BX_PLATFORM_WINDOWS
 					{
-//						debug1->SetEnableGPUBasedValidation(true);
+						ID3D12Debug1* debug1;
+						hr = debug0->QueryInterface(IID_ID3D12Debug1, (void**)&debug1);
+
+						if (SUCCEEDED(hr) )
+						{
+//							debug1->SetEnableGPUBasedValidation(true);
+						}
 					}
+#endif // BX_PLATFORM_WINDOWS
 				}
 			}