This is a high severity message I get when running OpenGL ES Analyzer on a cocos 2.0 project with default settings (3d projection, depth test enabled). Details on the log:
Category:
Depth Test Enabled Without Depth Buffer
Summary:
Depth testing enabled without an attached depth buffer
Recommendation:
OpenGL ES Analyzer detected rendering with GL_DEPTH_TEST enabled into a framebuffer without an attached depth buffer. To get useful results from depth testing, attach a depth buffer to your FBO.
Responsible Command:
glDrawElements(GL_TRIANGLES, 18, GL_UNSIGNED_SHORT, NULL)
glDrawArrays(GL_TRIANGLE_STRIP, 0, 4)
What does it mean exactly? Can it affect performance? Thanks
UPDATE:
If setting depthFormat:GL_DEPTH_COMPONENT16_OES instead of depthFormat:0 in AppDelegate removes that message from the analyzer, since it successfully creates the depth buffer.
Not sure though why is that set to 0 if depth test is enabled? Probably just a template error..?