From f45aef7294b4121146b1f14d97ca0e5946ecbdaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Fri, 30 Mar 2018 19:30:44 -0700 Subject: [PATCH] Cleanup. --- src/renderer_d3d12.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/renderer_d3d12.cpp b/src/renderer_d3d12.cpp index 6706750d4..5a6a76932 100644 --- a/src/renderer_d3d12.cpp +++ b/src/renderer_d3d12.cpp @@ -738,6 +738,8 @@ namespace bgfx { namespace d3d12 // debug1->SetEnableGPUBasedValidation(true); // debug1->SetEnableSynchronizedCommandQueueValidation(true); } + + DX_RELEASE(debug1, 1); } #elif BX_PLATFORM_XBOXONE debug0->SetProcessDebugFlags(D3D12_PROCESS_DEBUG_FLAG_DEBUG_LAYER_ENABLED); @@ -751,8 +753,9 @@ namespace bgfx { namespace d3d12 debug0->SetProcessDebugFlags(D3D12XBOX_PROCESS_DEBUG_FLAG_INSTRUMENTED); } #endif // BX_PLATFORM_XBOXONE - } + DX_RELEASE(debug0, 0); + } } { @@ -1306,7 +1309,7 @@ namespace bgfx { namespace d3d12 m_cmd.shutdown(); - DX_RELEASE(m_device, 0); + DX_RELEASE(m_device, 0); m_nvapi.shutdown(); m_dxgi.shutdown(); @@ -5783,6 +5786,7 @@ data.NumQualityLevels = 0; currentState.clear(); currentState.m_scissor = !draw.m_scissor; currentBind.clear(); + commandListChanged = true; } continue;