From c7a257c27d1fe18bba688cab88a1a2c776ed2f31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Tue, 24 Jun 2014 20:29:43 -0700 Subject: [PATCH] Fixed issue#106. --- src/renderer_d3d11.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/renderer_d3d11.h b/src/renderer_d3d11.h index 3b196040..ac068c01 100644 --- a/src/renderer_d3d11.h +++ b/src/renderer_d3d11.h @@ -52,16 +52,10 @@ namespace bgfx { for (HashMap::iterator it = m_hashMap.begin(), itEnd = m_hashMap.end(); it != itEnd; ++it) { + DX_CHECK_REFCOUNT(it->second, 1); it->second->Release(); } -#if BGFX_CONFIG_DEBUG - for (HashMap::iterator it = m_hashMap.begin(), itEnd = m_hashMap.end(); it != itEnd; ++it) - { - DX_CHECK_REFCOUNT(it->second, 0); - } -#endif // BGFX_CONFIG_DEBUG - m_hashMap.clear(); }