Fix GUI crashes when exiting STK by clicking the X button in the window titlebar
This commit is contained in:
parent
4e079b0e14
commit
00ae12677a
@ -1931,8 +1931,9 @@ void IrrDriver::update(float dt)
|
||||
// =================================
|
||||
if (!m_device->run())
|
||||
{
|
||||
GUIEngine::cleanUp();
|
||||
GUIEngine::deallocate();
|
||||
// Don't bother cleaning up GUI, has no use and may result in crashes
|
||||
//GUIEngine::cleanUp();
|
||||
//GUIEngine::deallocate();
|
||||
main_loop->abort();
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user