diff --git a/src/timer/SDL_timer.c b/src/timer/SDL_timer.c index 7d01f59d9..01704ca60 100644 --- a/src/timer/SDL_timer.c +++ b/src/timer/SDL_timer.c @@ -550,6 +550,9 @@ void SDL_TicksInit(void) tick_denominator_ms = (Uint32)(tick_freq / gcd); tick_start = SDL_GetPerformanceCounter(); + if (!tick_start) { + --tick_start; + } } void SDL_TicksQuit(void)