Fix hang after exiting a game. After running a game, coreState is POWERDOWN which counts as stepping.

This commit is contained in:
Henrik Rydgård 2023-08-10 23:52:24 +02:00
parent 87f7523f99
commit 7c60022979

View File

@ -228,7 +228,7 @@ void Core_RunLoop(GraphicsContext *ctx) {
sleep_ms(sleepTime);
}
if (!windowHidden && !Core_IsStepping()) {
if ((!windowHidden && !Core_IsStepping()) || menuThrottle) {
ctx->SwapBuffers();
}
}