Fixed issue#106.

This commit is contained in:
Branimir Karadžić 2014-06-24 20:29:43 -07:00
parent 0d8a51fe05
commit c7a257c27d

View file

@ -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();
}