diff --git a/apps/openmw/mwrender/renderingmanager.cpp b/apps/openmw/mwrender/renderingmanager.cpp index ab76b86f1a..8f73036e91 100644 --- a/apps/openmw/mwrender/renderingmanager.cpp +++ b/apps/openmw/mwrender/renderingmanager.cpp @@ -258,6 +258,8 @@ namespace MWRender RenderingManager::~RenderingManager() { + // let background loading thread finish before we delete anything else + mWorkQueue = NULL; } MWRender::Objects& RenderingManager::getObjects()