Skip to content

Commit

Permalink
remove unnecarry assert.
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed May 22, 2024
1 parent e4dff16 commit c4ffe41
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/SDL12_compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -6107,7 +6107,6 @@ SetVideoModeImpl(int width, int height, int bpp, Uint32 flags12)
} else if (VideoSurface12->surface20 && (VideoSurface12->surface20->format->format != appfmt)) {
EndVidModeCreate(); /* rebuild the window if changing pixel format */
} else {
SDL_assert(VideoSurface12 != NULL);
/* SDL 1.2 (infuriatingly!) destroys the window (and GL context!) on each resize in some cases, on various platforms. Try to match that. */
#ifdef __WINDOWS__
/* The windx5 driver _always_ destroyed the window, unconditionally, but the default (windib) did not, so match windib.
Expand Down

0 comments on commit c4ffe41

Please sign in to comment.