Graphics/ForwardRenderQueue: Fix error
Former-commit-id: a396c373b51128c57f5d8f98291f821b0bfc0c76
This commit is contained in:
parent
ee16bee137
commit
bff0e2df21
|
|
@ -502,16 +502,17 @@ namespace Nz
|
|||
layers.clear();
|
||||
else
|
||||
{
|
||||
for (auto it = layers.begin(); it != layers.end(); ++it)
|
||||
for (auto it = layers.begin(); it != layers.end();)
|
||||
{
|
||||
Layer& layer = it->second;
|
||||
if (layer.clearCount++ >= 100)
|
||||
it = layers.erase(it);
|
||||
layers.erase(it++);
|
||||
else
|
||||
{
|
||||
layer.otherDrawables.clear();
|
||||
layer.transparentModels.clear();
|
||||
layer.transparentModelData.clear();
|
||||
++it;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue