hedgewars/uMisc.pas
changeset 1916 9c3d0e3df6bb
parent 1912 c3d31fb59f0e
child 2000 f9f47e681aad
--- a/hedgewars/uMisc.pas	Mon Mar 23 19:03:51 2009 +0000
+++ b/hedgewars/uMisc.pas	Mon Mar 23 21:09:34 2009 +0000
@@ -497,7 +497,11 @@
 size:= cScreenWidth * cScreenHeight * 3;
 p:= GetMem(size);
 
+{$IFDEF IPHONE}
+//since opengl es operates on a single surface GL_FRONT is implied, but how to test that?
+{$ELSE}
 glReadBuffer(GL_FRONT);
+{$ENDIF}
 glReadPixels(0, 0, cScreenWidth, cScreenHeight, GL_BGR, GL_UNSIGNED_BYTE, p);
 
 {$I-}