From 5b8a55b85991850b9f3091ce72492856224de9f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Thu, 30 Jul 2015 21:20:46 -0700 Subject: [PATCH] D3D12: Fixed refcount problem. --- src/renderer_d3d12.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/renderer_d3d12.cpp b/src/renderer_d3d12.cpp index 2c4f686f..63515abc 100644 --- a/src/renderer_d3d12.cpp +++ b/src/renderer_d3d12.cpp @@ -571,6 +571,7 @@ namespace bgfx { namespace d3d12 for (uint32_t ii = 0; DXGI_ERROR_NOT_FOUND != m_factory->EnumAdapters(ii, &adapter); ++ii) { adapter->GetDesc(&m_adapterDesc); + DX_RELEASE(adapter, 0); if (m_adapterDesc.AdapterLuid.LowPart == luid.LowPart && m_adapterDesc.AdapterLuid.HighPart == luid.HighPart) {