From 375372981cbc5ee4c82217ec0bc84b35dba344bf Mon Sep 17 00:00:00 2001 From: elsid Date: Fri, 21 May 2021 23:15:14 +0200 Subject: [PATCH] Stop osg viewer threading before destructing engine To avoid rendering while engine parts are destructing. --- apps/openmw/engine.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/openmw/engine.cpp b/apps/openmw/engine.cpp index b227ae04e..a06faa4d7 100644 --- a/apps/openmw/engine.cpp +++ b/apps/openmw/engine.cpp @@ -970,6 +970,8 @@ void OMW::Engine::go() // Save user settings settings.saveUser(settingspath); + mViewer->stopThreading(); + Log(Debug::Info) << "Quitting peacefully."; }