From d6773d304f197a601eea16d6bf9409ba52ad8534 Mon Sep 17 00:00:00 2001 From: Daniel Gibson Date: Tue, 20 Nov 2018 14:19:11 +0100 Subject: [PATCH] Work around SDL bug that causes little freezes, see #188 --- neo/framework/Common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neo/framework/Common.cpp b/neo/framework/Common.cpp index 5829110b..ed519b23 100644 --- a/neo/framework/Common.cpp +++ b/neo/framework/Common.cpp @@ -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();