From 694fea8ad8fd074fae1ec30fe85267b6dc476f49 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 26 Jun 2020 21:37:29 -0400 Subject: [PATCH] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c index f49bd0cf4..57741776a 100644 --- a/src/video/SDL_video.c +++ b/src/video/SDL_video.c @@ -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; } }