mirror of https://github.com/encounter/SDL.git
There are legitimate reasons to skip full cleanup at shutdown, don't assert in that case.
This commit is contained in:
parent
3ac9e2aa4e
commit
53260b31b5
|
@ -389,9 +389,11 @@ SDL_HapticClose(SDL_Haptic * haptic)
|
||||||
void
|
void
|
||||||
SDL_HapticQuit(void)
|
SDL_HapticQuit(void)
|
||||||
{
|
{
|
||||||
|
while (SDL_haptics) {
|
||||||
|
SDL_HapticClose(SDL_haptics);
|
||||||
|
}
|
||||||
|
|
||||||
SDL_SYS_HapticQuit();
|
SDL_SYS_HapticQuit();
|
||||||
SDL_assert(SDL_haptics == NULL);
|
|
||||||
SDL_haptics = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue