Browse Source

Fixed inverted vsync flag reference in Linux

Ithai Levi 12 years ago
parent
commit
0849ddf577
1 changed files with 2 additions and 2 deletions
  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)
 void Platform::setVsync(bool enable)
 {
 {
+    __vsync = enable;
+
     if (glXSwapIntervalEXT)
     if (glXSwapIntervalEXT)
         glXSwapIntervalEXT(__display, __window, __vsync ? 1 : 0);
         glXSwapIntervalEXT(__display, __window, __vsync ? 1 : 0);
     else if(glXSwapIntervalMESA)
     else if(glXSwapIntervalMESA)
         glXSwapIntervalMESA(__vsync ? 1 : 0);
         glXSwapIntervalMESA(__vsync ? 1 : 0);
-
-    __vsync = enable;
 }
 }
 
 
 void Platform::swapBuffers()
 void Platform::swapBuffers()