Codefix: Null video driver: take the game lock

The game loop must run with the game lock held.
This commit is contained in:
Matthias Urlichs 2025-02-05 06:40:50 +01:00
parent abdea49d24
commit bac9bf93bc

View File

@ -51,7 +51,10 @@ void VideoDriver_Null::MainLoop()
uint i;
for (i = 0; i < this->ticks && ! _exit_game; i++) {
::GameLoop();
{
std::lock_guard<std::mutex> lock(this->game_state_mutex);
::GameLoop();
}
::InputLoop();
::UpdateWindows();
}