mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Remove destroyed uniform from hash map.
This commit is contained in:
parent
3838492e8d
commit
1295de90ea
1 changed files with 9 additions and 0 deletions
|
@ -2906,6 +2906,15 @@ namespace bgfx
|
|||
|
||||
if (0 == refs)
|
||||
{
|
||||
for (UniformHashMap::iterator it = m_uniformHashMap.begin(), itEnd = m_uniformHashMap.end(); it != itEnd; ++it)
|
||||
{
|
||||
if (it->second.idx == _handle.idx)
|
||||
{
|
||||
m_uniformHashMap.erase(it);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
CommandBuffer& cmdbuf = getCommandBuffer(CommandBuffer::DestroyUniform);
|
||||
cmdbuf.write(_handle);
|
||||
m_submit->free(_handle);
|
||||
|
|
Loading…
Reference in a new issue