Fix data race during palette animation with threaded blitters
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user