hedgewars/uStore.pas
changeset 3675 857c9546a822
parent 3670 4c673e57f0d7
child 3686 617d00c850b0
child 3689 e2be39ee19f0
equal deleted inserted replaced
3673:45778b16b224 3675:857c9546a822
  1131     SDL_GL_SetAttribute(SDL_GL_RETAINED_BACKING, 1);
  1131     SDL_GL_SetAttribute(SDL_GL_RETAINED_BACKING, 1);
  1132 {$ELSE}
  1132 {$ELSE}
  1133     SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
  1133     SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
  1134 {$IFNDEF SDL13}
  1134 {$IFNDEF SDL13}
  1135 // this attribute is default in 1.3 and must be enabled in MacOSX
  1135 // this attribute is default in 1.3 and must be enabled in MacOSX
  1136     if cVSyncInUse then
  1136     if (cReducedQuality and rqDesyncVBlank) <> 0 then
       
  1137         SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 0)
       
  1138     else
  1137         SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1);
  1139         SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1);
  1138 {$IFDEF DARWIN}
  1140 {$IFDEF DARWIN}
  1139 // fixes vsync in Snow Leopard
  1141 // fixes vsync in Snow Leopard
  1140     one := 1;
  1142     one:= 1;
  1141     CGLSetParameter(CGLGetCurrentContext(), 222, @one);
  1143     CGLSetParameter(CGLGetCurrentContext(), 222, @one);
  1142 {$ENDIF}
  1144 {$ENDIF}
  1143 {$ENDIF}
  1145 {$ENDIF}
  1144 {$ENDIF}
  1146 {$ENDIF}
  1145     SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0); // no depth buffer
  1147     SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0); // no depth buffer