mirror of https://github.com/encounter/SDL.git
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:
parent
c0578f9293
commit
f31ce3fb33
|
@ -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. */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue