From 7c600229799b3fa148c67a5324e2666f41000a8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 10 Aug 2023 23:52:24 +0200 Subject: [PATCH] Fix hang after exiting a game. After running a game, coreState is POWERDOWN which counts as stepping. --- Core/Core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Core.cpp b/Core/Core.cpp index 56e78cf926..60064b176c 100644 --- a/Core/Core.cpp +++ b/Core/Core.cpp @@ -228,7 +228,7 @@ void Core_RunLoop(GraphicsContext *ctx) { sleep_ms(sleepTime); } - if (!windowHidden && !Core_IsStepping()) { + if ((!windowHidden && !Core_IsStepping()) || menuThrottle) { ctx->SwapBuffers(); } }