forked from mirror/openmw-tes3mp
Delete the WorkQueue first
Fixes a potential crash on exit.
This commit is contained in:
parent
3732979eec
commit
71f786ff84
1 changed files with 2 additions and 0 deletions
|
@ -258,6 +258,8 @@ namespace MWRender
|
|||
|
||||
RenderingManager::~RenderingManager()
|
||||
{
|
||||
// let background loading thread finish before we delete anything else
|
||||
mWorkQueue = NULL;
|
||||
}
|
||||
|
||||
MWRender::Objects& RenderingManager::getObjects()
|
||||
|
|
Loading…
Reference in a new issue