From ff1607359915b9e2c3cb1fe30aff7166d05d9951 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Tue, 30 Jun 2015 19:40:49 -0700 Subject: [PATCH] Fixed issue #445. --- src/renderer_d3d11.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/renderer_d3d11.cpp b/src/renderer_d3d11.cpp index 845adf1d..6e07827a 100644 --- a/src/renderer_d3d11.cpp +++ b/src/renderer_d3d11.cpp @@ -725,7 +725,7 @@ BX_PRAGMA_DIAGNOSTIC_POP(); } else { - setGraphicsDebuggerPresent(2 != getRefCount(device) ); + setGraphicsDebuggerPresent(3 != getRefCount(device) ); DX_RELEASE(device, 2); } @@ -831,11 +831,6 @@ BX_PRAGMA_DIAGNOSTIC_POP(); DX_RELEASE(m_infoQueue, 3); } - else - { - // InfoQueue QueryInterface will fail when AMD GPU Perfstudio 2 is present. - setGraphicsDebuggerPresent(true); - } } #endif // __MINGW__ @@ -1107,8 +1102,8 @@ BX_PRAGMA_DIAGNOSTIC_POP(); DX_RELEASE(m_swapChain, 0); DX_RELEASE(m_deviceCtx, 0); - DX_RELEASE(m_factory, 0); DX_RELEASE(m_device, 0); + DX_RELEASE(m_factory,0); unloadRenderDoc(m_renderdocdll);