mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 06:55:54 -04:00
Wait for completion of CreateMapItem on exit to avoid potential threading issue
This commit is contained in:
parent
804f873649
commit
5f76317807
@ -238,6 +238,9 @@ namespace MWRender
|
|||||||
removeCamera(*it);
|
removeCamera(*it);
|
||||||
for (CameraVector::iterator it = mActiveCameras.begin(); it != mActiveCameras.end(); ++it)
|
for (CameraVector::iterator it = mActiveCameras.begin(); it != mActiveCameras.end(); ++it)
|
||||||
removeCamera(*it);
|
removeCamera(*it);
|
||||||
|
|
||||||
|
if (mWorkItem)
|
||||||
|
mWorkItem->waitTillDone();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GlobalMap::render ()
|
void GlobalMap::render ()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user