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)
{
if (g_closed) {
return SDL_APP_SUCCESS;
}
if (!g_isle->Tick()) {
SDL_ShowSimpleMessageBox(
@ -299,6 +302,8 @@ SDL_AppResult SDL_AppIterate(void* appstate)
}
if (!g_closed) {
IsleDebug_Render();
if (g_reqEnableRMDevice) {
g_reqEnableRMDevice = FALSE;
VideoManager()->EnableRMDevice();
@ -306,8 +311,6 @@ SDL_AppResult SDL_AppIterate(void* appstate)
Lego()->Resume();
}
IsleDebug_Render();
if (g_closed) {
return SDL_APP_SUCCESS;
}