Work around SDL bug that causes little freezes, see #188

This commit is contained in:
Daniel Gibson 2018-11-20 14:19:11 +01:00
parent a2c99f9fca
commit d6773d304f

View file

@ -2863,7 +2863,7 @@ void idCommonLocal::Init( int argc, char **argv ) {
#endif
#endif
if (SDL_Init(SDL_INIT_TIMER | SDL_INIT_VIDEO))
if (SDL_Init(SDL_INIT_TIMER | SDL_INIT_VIDEO | SDL_INIT_JOYSTICK)) // init joystick to work around SDL 2.0.9 bug #4391
Sys_Error("Error while initializing SDL: %s", SDL_GetError());
Sys_InitThreads();