Show the window after creating the renderer

This hides any window recreation that might need to be done by the OpenGL renderers
main
Sam Lantinga 2024-02-17 09:21:30 -08:00
parent ff01d0b568
commit dc7baa415e
1 changed files with 2 additions and 2 deletions

View File

@ -1497,8 +1497,6 @@ SDL_bool SDLTest_CommonInit(SDLTest_CommonState *state)
} }
} }
SDL_ShowWindow(state->windows[i]);
if (!SDL_RectEmpty(&state->confine)) { if (!SDL_RectEmpty(&state->confine)) {
SDL_SetWindowMouseRect(state->windows[i], &state->confine); SDL_SetWindowMouseRect(state->windows[i], &state->confine);
} }
@ -1530,6 +1528,8 @@ SDL_bool SDLTest_CommonInit(SDLTest_CommonState *state)
SDLTest_PrintRenderer(&info); SDLTest_PrintRenderer(&info);
} }
} }
SDL_ShowWindow(state->windows[i]);
} }
} }