hedgewars/CCHandlers.inc
changeset 2617 ef0d93cd61b2
parent 2608 cebfea02f8b5
child 2618 23ee71bd049b
--- 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;