mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Add the unref work items to the front of the workqueue (Bug #3273)
Ensures that memory still gets freed even if the workqueue is overloaded.
This commit is contained in:
parent
bc36269617
commit
2f8be401cc
4 changed files with 12 additions and 8 deletions
|
@ -40,7 +40,7 @@ namespace SceneUtil
|
|||
if (mWorkItem->mObjects.empty())
|
||||
return;
|
||||
|
||||
workQueue->addWorkItem(mWorkItem);
|
||||
workQueue->addWorkItem(mWorkItem, true);
|
||||
|
||||
mWorkItem = new UnrefWorkItem;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue