diff --git a/ISLE/isleapp.cpp b/ISLE/isleapp.cpp index 4fa20ee5..64823af1 100644 --- a/ISLE/isleapp.cpp +++ b/ISLE/isleapp.cpp @@ -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; }