Skip to content

Commit

Permalink
Show the window after creating the renderer
Browse files Browse the repository at this point in the history
This hides any window recreation that might need to be done by the OpenGL renderers
  • Loading branch information
slouken committed Feb 17, 2024
1 parent ff01d0b commit dc7baa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/SDL_test_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1497,8 +1497,6 @@ SDL_bool SDLTest_CommonInit(SDLTest_CommonState *state)
}
}

SDL_ShowWindow(state->windows[i]);

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

SDL_ShowWindow(state->windows[i]);
}
}

Expand Down

0 comments on commit dc7baa4

Please sign in to comment.