PDA

View Full Version : Black screen on new iPad Air



osgoz
11-20-2013, 08:58 AM
Hi all.

My proton application does not display anything on a new iPad Air.
You launch the application, show the loading screen, and when the MainMenu has to be shown, only a blank black screen is showed.
The application does not crash, and I think that it is still running behind.
In any other iPad / iPhone version it works perfectly.
In the simulator, with iPad retina 64 bit specs, it runs OK.
I have no way to get a real iPad Air to test it (no money :( ) at this time.
Does anyone have the same problem.

Regards.

osgoz
11-27-2013, 09:18 AM
Hi,

I have found the "error".
In my application, I use FBO to achive antialiasing.
I follow the Apple docs to produce multisampling antialiasing https://developer.apple.com/library/ios/documentation/3ddrawing/conceptual/opengles_programmingguide/WorkingwithEAGLContexts/WorkingwithEAGLContexts.html#//apple_ref/doc/uid/TP40008793-CH103-SW4

So on an iPad Air, I obtain a black screen, but if I remove the lines of the Discard step, the image renders visible again.

Regards

osgoz
12-02-2013, 11:49 AM
Hi.

Now it is working correctly in all devices.
I have to comment this lines:

const GLenum discards[] = {GL_COLOR_ATTACHMENT0,GL_DEPTH_ATTACHMENT};

glDiscardFramebufferEXT(GL_READ_FRAMEBUFFER_APPLE, 2,discards);


I think this have something related with the fact that the iPad Air is the only model that supports OpenGL ES 3.0

I am afraid that this is a bug of iOS 7 , and when Apple correct it, I must have to comment out the lines to get it working again.

Regards.