Windows: Fixed not removing the always added hint callback on quit.

This was no real problem because SDL_Quit() also calls SDL_ClearHints().
This commit is contained in:
Philipp Wiesemann 2016-10-16 22:47:37 +02:00
parent c0578f9293
commit f31ce3fb33

View File

@ -107,10 +107,8 @@ SDL_TicksInit(void)
void void
SDL_TicksQuit(void) SDL_TicksQuit(void)
{ {
if (!hires_timer_available) { SDL_DelHintCallback(SDL_HINT_TIMER_RESOLUTION,
SDL_DelHintCallback(SDL_HINT_TIMER_RESOLUTION, SDL_TimerResolutionChanged, NULL);
SDL_TimerResolutionChanged, NULL);
}
SDL_SetSystemTimerResolution(0); /* always release our timer resolution request. */ SDL_SetSystemTimerResolution(0); /* always release our timer resolution request. */