Browse Source

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

This was no real problem because SDL_Quit() also calls SDL_ClearHints().
Philipp Wiesemann 8 years ago
parent
commit
f31ce3fb33
1 changed files with 2 additions and 4 deletions
  1. 2 4
      src/timer/windows/SDL_systimer.c

+ 2 - 4
src/timer/windows/SDL_systimer.c

@@ -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. */