Skip to content

Commit

Permalink
Don't rerun vidmode check on second init.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Feb 28, 2019
1 parent 85d0271 commit 46a2fcb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/SDL12_compat.c
Expand Up @@ -980,8 +980,11 @@ Init12VidModes(void)
void *ptr = NULL;
int i, j;

if (VideoModesCount > 0) {
return 0; // already did this.
}

SDL_assert(VideoModes == NULL);
SDL_assert(VideoModesCount == 0);

for (i = 0; i < total; ++i) {
SDL_DisplayMode mode;
Expand Down

0 comments on commit 46a2fcb

Please sign in to comment.