Przeglądaj źródła

Always set checked_monotonic_time when calling CheckMonotonicTime()

Petar Popovic 1 rok temu
rodzic
commit
d4143e02d1
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/timer/unix/SDL_systimer.c

+ 1 - 1
src/timer/unix/SDL_systimer.c

@@ -73,7 +73,7 @@ static void CheckMonotonicTime(void)
     struct timespec value;
     struct timespec value;
     if (clock_gettime(SDL_MONOTONIC_CLOCK, &value) == 0) {
     if (clock_gettime(SDL_MONOTONIC_CLOCK, &value) == 0) {
         has_monotonic_time = true;
         has_monotonic_time = true;
-    } else
+    }
 #elif defined(SDL_PLATFORM_APPLE)
 #elif defined(SDL_PLATFORM_APPLE)
     if (mach_timebase_info(&mach_base_info) == 0) {
     if (mach_timebase_info(&mach_base_info) == 0) {
         has_monotonic_time = true;
         has_monotonic_time = true;