Explicitly init SDL2's video subsystem

This commit is contained in:
Clownacy 2020-01-16 16:36:03 +00:00
parent f0d1706907
commit 54189c598d

View file

@ -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;