hedgewars/CCHandlers.inc
changeset 2618 23ee71bd049b
parent 2617 ef0d93cd61b2
child 2624 0c3d5549912e
--- a/hedgewars/CCHandlers.inc	Fri Nov 13 20:33:31 2009 +0000
+++ b/hedgewars/CCHandlers.inc	Fri Nov 13 23:04:23 2009 +0000
@@ -599,13 +599,16 @@
 AddFileLog('Prepare to change video parameters...');
 {$ENDIF}
 
+{$IFNDEF IPHONEOS}
 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
-{$IFDEF IPHONEOS}
+{$ELSE}
 // 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}
+{$ENDIF}
+
+{$IFNDEF SDL13}
 // this attribute is default in 1.3
 SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1);
 {$ENDIF}