]> git.lizzy.rs Git - nothing.git/commitdiff
tsoding#1225 don't init SDL haptic subsystem
authorivanhoe <107501-ivanhoe@users.noreply.gitlab.com>
Sun, 29 Dec 2019 18:06:24 +0000 (19:06 +0100)
committerivanhoe <107501-ivanhoe@users.noreply.gitlab.com>
Sun, 29 Dec 2019 18:06:24 +0000 (19:06 +0100)
src/main.c

index 878bb2bdf9185a5821d9ca326ac070891f16fae2..f53433c8bfb04f5c25a68a69ea8d74dc2803f220 100644 (file)
@@ -106,7 +106,7 @@ int main(int argc, char *argv[])
         }
     }
 
-    if (SDL_Init(SDL_INIT_EVERYTHING) < 0) {
+    if (SDL_Init(SDL_INIT_EVERYTHING & ~SDL_INIT_HAPTIC) < 0) {
         log_fail("Could not initialize SDL: %s\n", SDL_GetError());
         RETURN_LT(lt, -1);
     }