diff --git a/src/renderer_d3d11.cpp b/src/renderer_d3d11.cpp index 6bfc54bb0..c0759dc76 100644 --- a/src/renderer_d3d11.cpp +++ b/src/renderer_d3d11.cpp @@ -1119,8 +1119,6 @@ namespace bgfx { namespace d3d11 filter.DenyList.pIDList = idlist; m_infoQueue->PushStorageFilter(&filter); - - DX_RELEASE(m_infoQueue, 3); } } @@ -1511,6 +1509,8 @@ namespace bgfx { namespace d3d11 switch (errorState) { case ErrorState::LoadedDXGI: + DX_RELEASE(m_annotation, 1); + DX_RELEASE_WARNONLY(m_infoQueue, 0); DX_RELEASE(m_msaaRt, 0); DX_RELEASE(m_swapChain, 0); DX_RELEASE(m_deviceCtx, 0); @@ -1597,6 +1597,7 @@ namespace bgfx { namespace d3d11 } DX_RELEASE(m_annotation, 1); + DX_RELEASE_WARNONLY(m_infoQueue, 0); DX_RELEASE(m_msaaRt, 0); DX_RELEASE(m_swapChain, 0); DX_RELEASE(m_deviceCtx, 0); diff --git a/src/renderer_d3d12.cpp b/src/renderer_d3d12.cpp index ec8fdbebe..b3f9016fb 100644 --- a/src/renderer_d3d12.cpp +++ b/src/renderer_d3d12.cpp @@ -979,8 +979,6 @@ namespace bgfx { namespace d3d12 filter.DenyList.NumCategories = BX_COUNTOF(catlist); filter.DenyList.pCategoryList = catlist; m_infoQueue->PushStorageFilter(&filter); - - DX_RELEASE_WARNONLY(m_infoQueue, 0); } } #endif // BX_PLATFORM_WINDOWS @@ -1364,6 +1362,10 @@ namespace bgfx { namespace d3d12 m_textures[ii].destroy(); } +#if BX_PLATFORM_WINDOWS + DX_RELEASE_WARNONLY(m_infoQueue, 0); +#endif // BX_PLATFORM_WINDOWS + DX_RELEASE(m_rtvDescriptorHeap, 0); DX_RELEASE(m_dsvDescriptorHeap, 0);