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
1 changed files with 2 additions and 4 deletions

View File

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