g_closed test in SDL_AppIterate is still needed

This commit is contained in:
Anonymous Maarten 2025-05-20 23:11:52 +02:00
parent 42effe8961
commit 7c0c45d630

View File

@ -286,6 +286,9 @@ SDL_AppResult SDL_AppInit(void** appstate, int argc, char** argv)
SDL_AppResult SDL_AppIterate(void* appstate) SDL_AppResult SDL_AppIterate(void* appstate)
{ {
if (g_closed) {
return SDL_APP_SUCCESS;
}
if (!g_isle->Tick()) { if (!g_isle->Tick()) {
SDL_ShowSimpleMessageBox( SDL_ShowSimpleMessageBox(
@ -299,6 +302,8 @@ SDL_AppResult SDL_AppIterate(void* appstate)
} }
if (!g_closed) { if (!g_closed) {
IsleDebug_Render();
if (g_reqEnableRMDevice) { if (g_reqEnableRMDevice) {
g_reqEnableRMDevice = FALSE; g_reqEnableRMDevice = FALSE;
VideoManager()->EnableRMDevice(); VideoManager()->EnableRMDevice();
@ -306,8 +311,6 @@ SDL_AppResult SDL_AppIterate(void* appstate)
Lego()->Resume(); Lego()->Resume();
} }
IsleDebug_Render();
if (g_closed) { if (g_closed) {
return SDL_APP_SUCCESS; return SDL_APP_SUCCESS;
} }