Skip to content

Commit

Permalink
video: Make SDL_CreateWindow use SDL_Init(SDL_INIT_VIDEO), not SDL_Vi…
Browse files Browse the repository at this point in the history
…deoInit.

Otherwise, the video subsystem won't deinitialize during SDL_Quit().

Fixes Bugzilla #5067.
  • Loading branch information
icculus committed Jun 27, 2020
1 parent 50fd0dd commit 694fea8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/SDL_video.c
Expand Up @@ -1429,7 +1429,7 @@ SDL_CreateWindow(const char *title, int x, int y, int w, int h, Uint32 flags)

if (!_this) {
/* Initialize the video system if needed */
if (SDL_VideoInit(NULL) < 0) {
if (SDL_Init(SDL_INIT_VIDEO) < 0) {
return NULL;
}
}
Expand Down

0 comments on commit 694fea8

Please sign in to comment.