mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 12:42:34 +01:00
committed by
GitHub
parent
4cec34f4a1
commit
611baeb183
@@ -3533,7 +3533,7 @@ namespace bgfx
|
||||
|
||||
void invalidate(ViewId _viewId)
|
||||
{
|
||||
for (UniformKeyHashMap::iterator itKey = m_uniformKeyHashMap.begin(), itEnd = m_uniformKeyHashMap.end(); itKey != itEnd; ++itKey)
|
||||
for (UniformKeyHashMap::iterator itKey = m_uniformKeyHashMap.begin(), itEnd = m_uniformKeyHashMap.end(); itKey != itEnd;)
|
||||
{
|
||||
UniformCacheKey key;
|
||||
key.decode(uint64_t(itKey->first) << 32);
|
||||
@@ -3547,6 +3547,10 @@ namespace bgfx
|
||||
|
||||
m_uniformKeyHashMap.erase(itErase);
|
||||
}
|
||||
else
|
||||
{
|
||||
++itKey;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user