Fix data race during palette animation with threaded blitters

This commit is contained in:
Jonathan G Rennison
2020-04-11 23:56:13 +01:00
parent c061675001
commit 4c59dfb6b1
10 changed files with 20 additions and 4 deletions

View File

@@ -48,11 +48,13 @@ void VideoDriver_Null::MainLoop()
if (this->until_exit) {
while (!_exit_game) {
GameLoop();
GameLoopPaletteAnimations();
UpdateWindows();
}
} else {
for (int i = 0; i < this->ticks; i++) {
GameLoop();
GameLoopPaletteAnimations();
UpdateWindows();
}
}