hedgewars/CCHandlers.inc
changeset 2633 9eb131794a6e
parent 2629 be70fd3458c0
child 2635 80d02d3e24ae
--- a/hedgewars/CCHandlers.inc	Fri Nov 20 22:02:49 2009 +0000
+++ b/hedgewars/CCHandlers.inc	Fri Nov 20 23:40:24 2009 +0000
@@ -600,13 +600,17 @@
 AddFileLog('Prepare to change video parameters...');
 {$ENDIF}
 
-{$IFNDEF IPHONEOS}
-SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
-{$ELSE}
-// remove these if they cause incompatibility
+{$IFDEF IPHONEOS}
 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 0);
 SDL_GL_SetAttribute(SDL_GL_RETAINED_BACKING, 1);
 SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0);
+SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8);
+SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8);
+SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8);
+SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 8);
+SDL_GL_SetAttribute(SDL_GL_BUFFER_SIZE, 32);
+{$ELSE}
+SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
 {$ENDIF}
 
 {$IFNDEF SDL13}