Explicitly init SDL2's video subsystem
This commit is contained in:
parent
f0d1706907
commit
54189c598d
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue