Преглед на файлове

Fix a crash in renderer_d3d12.cpp (#3349)

If querying the debug1 interface fails, don't attempt to release it.
Daniel Kalmar преди 1 година
родител
ревизия
eaec8ddf3b
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      src/renderer_d3d12.cpp

+ 2 - 2
src/renderer_d3d12.cpp

@@ -858,9 +858,9 @@ namespace bgfx { namespace d3d12
 									{
 										debug1->SetEnableSynchronizedCommandQueueValidation(false);
 									}
-								}
 
-								DX_RELEASE(debug1, 1);
+									DX_RELEASE(debug1, 1);
+								}
 							}
 #endif // BX_PLATFORM_WINDOWS
 						}