Parcourir la source

Fixed inverted vsync flag reference in Linux

Ithai Levi il y a 12 ans
Parent
commit
0849ddf577
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      gameplay/src/PlatformLinux.cpp

+ 2 - 2
gameplay/src/PlatformLinux.cpp

@@ -1375,12 +1375,12 @@ bool Platform::isVsync()
 
 void Platform::setVsync(bool enable)
 {
+    __vsync = enable;
+
     if (glXSwapIntervalEXT)
         glXSwapIntervalEXT(__display, __window, __vsync ? 1 : 0);
     else if(glXSwapIntervalMESA)
         glXSwapIntervalMESA(__vsync ? 1 : 0);
-
-    __vsync = enable;
 }
 
 void Platform::swapBuffers()