Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
There are legitimate reasons to skip full cleanup at shutdown, don't …
…assert in that case.
  • Loading branch information
slouken committed Oct 8, 2018
1 parent 3ac9e2a commit 53260b3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/haptic/SDL_haptic.c
Expand Up @@ -389,9 +389,11 @@ SDL_HapticClose(SDL_Haptic * haptic)
void
SDL_HapticQuit(void)
{
while (SDL_haptics) {
SDL_HapticClose(SDL_haptics);
}

SDL_SYS_HapticQuit();
SDL_assert(SDL_haptics == NULL);
SDL_haptics = NULL;
}

/*
Expand Down

0 comments on commit 53260b3

Please sign in to comment.