mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Fixed issue#106.
This commit is contained in:
parent
0d8a51fe05
commit
c7a257c27d
1 changed files with 1 additions and 7 deletions
|
@ -52,16 +52,10 @@ namespace bgfx
|
||||||
{
|
{
|
||||||
for (HashMap::iterator it = m_hashMap.begin(), itEnd = m_hashMap.end(); it != itEnd; ++it)
|
for (HashMap::iterator it = m_hashMap.begin(), itEnd = m_hashMap.end(); it != itEnd; ++it)
|
||||||
{
|
{
|
||||||
|
DX_CHECK_REFCOUNT(it->second, 1);
|
||||||
it->second->Release();
|
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();
|
m_hashMap.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue