Explorar el Código

Fix crash on shutdown in HMD mode.

Presumably this crash is due to a bug in either the Oculus SDK or DirectX itself as changing the order of releasing these objects should not have any effect.
James Darpinian hace 10 años
padre
commit
ee649f682e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/renderer_d3d11.cpp

+ 1 - 1
src/renderer_d3d11.cpp

@@ -942,8 +942,8 @@ BX_PRAGMA_DIAGNOSTIC_POP();
 
 
 			DX_RELEASE(m_swapChain, 0);
 			DX_RELEASE(m_swapChain, 0);
 			DX_RELEASE(m_deviceCtx, 0);
 			DX_RELEASE(m_deviceCtx, 0);
-			DX_RELEASE(m_device, 0);
 			DX_RELEASE(m_factory, 0);
 			DX_RELEASE(m_factory, 0);
+			DX_RELEASE(m_device, 0);
 
 
 			unloadRenderDoc(m_renderdocdll);
 			unloadRenderDoc(m_renderdocdll);