video: Make SDL_CreateWindow use SDL_Init(SDL_INIT_VIDEO), not SDL_VideoInit.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 26 Jun 2020 21:37:29 -0400
changeset 1393222ef6c87d061
parent 13931 84dc2aca3b52
child 13933 d86a8168fac9
video: Make SDL_CreateWindow use SDL_Init(SDL_INIT_VIDEO), not SDL_VideoInit.

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

Fixes Bugzilla #5067.
src/video/SDL_video.c
     1.1 --- a/src/video/SDL_video.c	Fri Jun 26 21:35:54 2020 -0400
     1.2 +++ b/src/video/SDL_video.c	Fri Jun 26 21:37:29 2020 -0400
     1.3 @@ -1429,7 +1429,7 @@
     1.4  
     1.5      if (!_this) {
     1.6          /* Initialize the video system if needed */
     1.7 -        if (SDL_VideoInit(NULL) < 0) {
     1.8 +        if (SDL_Init(SDL_INIT_VIDEO) < 0) {
     1.9              return NULL;
    1.10          }
    1.11      }