hedgewars/uStore.pas
changeset 3670 4c673e57f0d7
parent 3663 8c28abf427f5
child 3686 617d00c850b0
child 3689 e2be39ee19f0
--- a/hedgewars/uStore.pas	Sun Jul 25 01:59:41 2010 +0200
+++ b/hedgewars/uStore.pas	Sun Jul 25 16:02:02 2010 +0200
@@ -1133,11 +1133,13 @@
     SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
 {$IFNDEF SDL13}
 // this attribute is default in 1.3 and must be enabled in MacOSX
-    if cVSyncInUse then
+    if (cReducedQuality and rqDesyncVBlank) <> 0 then
+        SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 0)
+    else
         SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1);
 {$IFDEF DARWIN}
 // fixes vsync in Snow Leopard
-    one := 1;
+    one:= 1;
     CGLSetParameter(CGLGetCurrentContext(), 222, @one);
 {$ENDIF}
 {$ENDIF}