Skip to content

Commit

Permalink
Windows: Fixed not removing the always added hint callback on quit.
Browse files Browse the repository at this point in the history
This was no real problem because SDL_Quit() also calls SDL_ClearHints().
  • Loading branch information
philippwiesemann committed Oct 16, 2016
1 parent c0578f9 commit f31ce3f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/timer/windows/SDL_systimer.c
Expand Up @@ -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. */

Expand Down

0 comments on commit f31ce3f

Please sign in to comment.