hedgewars/CCHandlers.inc
changeset 2253 ecd10eaa5daf
parent 2240 7ce9e6b7be3b
child 2313 0ffdcae7653c
--- a/hedgewars/CCHandlers.inc	Sat Jul 11 13:47:57 2009 +0000
+++ b/hedgewars/CCHandlers.inc	Sat Jul 11 13:59:27 2009 +0000
@@ -561,7 +561,14 @@
 {$IFDEF DEBUGFILE}
 AddFileLog('Prepare to change video parameters...');
 {$ENDIF}
+
 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
+{$IFDEF IPHONEOS}
+//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);
+{$ENDIF}
 
 flags:= SDL_OPENGL;// or SDL_RESIZABLE;
 if cFullScreen then