Explorar el Código

Merge pull request #1330 from rlofc/next

Fixed inverted reference to vsync flag in Linux
Sean Taylor hace 12 años
padre
commit
884860a1f6
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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()