1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-09-15 15:02:34 +02:00

Fix crash at exit due caused by rendering to closed window

This commit is contained in:
Daniel Evans 2014-12-11 18:11:36 +00:00
parent 29570e794f
commit 17a649f045

View File

@ -75,6 +75,11 @@ int RWGame::run()
StateManager::get().states.back()->handleEvent(event);
}
if(! window.isOpen() )
{
break;
}
accum += clock.restart().asSeconds() * timescale;