Commit e9530d17 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum

[FIX] this should fix some freezes which might occur when closing openwalnut...

[FIX] this should fix some freezes which might occur when closing openwalnut before it started completely.
parent 3df762b2
...@@ -228,6 +228,8 @@ void WGraphicsEngine::threadMain() ...@@ -228,6 +228,8 @@ void WGraphicsEngine::threadMain()
void WGraphicsEngine::notifyStop() void WGraphicsEngine::notifyStop()
{ {
// when stopping the system while the GE is still waiting.
m_startThreadingCondition.notify();
WLogger::getLogger()->addLogMessage( "Stopping Graphics Engine", "GE", LL_INFO ); WLogger::getLogger()->addLogMessage( "Stopping Graphics Engine", "GE", LL_INFO );
#ifdef WGEMODE_MULTITHREADED #ifdef WGEMODE_MULTITHREADED
m_viewer->setDone( true ); m_viewer->setDone( true );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment