From 54189c598de093fe2ac2424c3d53d175f2d7437d Mon Sep 17 00:00:00 2001 From: Clownacy Date: Thu, 16 Jan 2020 16:36:03 +0000 Subject: [PATCH] Explicitly init SDL2's video subsystem --- src/Main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Main.cpp b/src/Main.cpp index fc2dd1fd..26df866f 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -89,6 +89,8 @@ int main(int argc, char *argv[]) int i; + SDL_Init(SDL_INIT_EVENTS); + // Get executable's path char *base_path = SDL_GetBasePath(); size_t base_path_length = strlen(base_path); @@ -191,7 +193,7 @@ int main(int argc, char *argv[]) RECT unused_rect = {0, 0, WINDOW_WIDTH, WINDOW_HEIGHT}; - SDL_Init(SDL_INIT_EVENTS); + SDL_InitSubSystem(SDL_INIT_VIDEO); SDL_Window *window;