diff -r 6e2b341dc408 -r ef0d93cd61b2 hedgewars/CCHandlers.inc --- a/hedgewars/CCHandlers.inc Wed Nov 11 21:54:28 2009 +0000 +++ b/hedgewars/CCHandlers.inc Fri Nov 13 20:33:31 2009 +0000 @@ -601,10 +601,13 @@ SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); {$IFDEF IPHONEOS} -//remove these if they cause incompatibility +// remove these if they cause incompatibility SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 0); SDL_GL_SetAttribute(SDL_GL_RETAINED_BACKING, 1); SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0); +{$ELSE} +// this attribute is default in 1.3 +SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1); {$ENDIF} flags:= SDL_OPENGL;// or SDL_RESIZABLE;