1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-30 07:21:12 +00:00

Wait for completion of CreateMapItem on exit to avoid potential threading issue

This commit is contained in:
scrawl 2017-03-06 18:14:43 +01:00
parent 804f873649
commit 5f76317807

View File

@ -238,6 +238,9 @@ namespace MWRender
removeCamera(*it);
for (CameraVector::iterator it = mActiveCameras.begin(); it != mActiveCameras.end(); ++it)
removeCamera(*it);
if (mWorkItem)
mWorkItem->waitTillDone();
}
void GlobalMap::render ()