Skip to content

Commit

Permalink
Made helper window creation depend on initializing the Haptics or Joy…
Browse files Browse the repository at this point in the history
…stick subsystems.
  • Loading branch information
slouken committed Nov 8, 2013
1 parent faebe94 commit 3523b40
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/SDL.c
Expand Up @@ -115,9 +115,11 @@ SDL_InitSubSystem(Uint32 flags)
SDL_ClearError();

#if SDL_VIDEO_DRIVER_WINDOWS
if (SDL_HelperWindowCreate() < 0) {
return -1;
}
if ((flags & (SDL_INIT_HAPTIC|SDL_INIT_JOYSTICK))) {
if (SDL_HelperWindowCreate() < 0) {
return -1;
}
}
#endif

#if !SDL_TIMERS_DISABLED
Expand Down

0 comments on commit 3523b40

Please sign in to comment.