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:
parent
29570e794f
commit
17a649f045
@ -75,6 +75,11 @@ int RWGame::run()
|
||||
|
||||
StateManager::get().states.back()->handleEvent(event);
|
||||
}
|
||||
|
||||
if(! window.isOpen() )
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
accum += clock.restart().asSeconds() * timescale;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user