Hello,
I am new to cocos2d, but am trying to follow the guide referenced in the documentation for CCTMXLayer: http://www.cocos2d-iphone.org/wiki/doku.php/prog_guide:tiled_maps
In the section on z-order and the depth buffer, it states that the depth buffer must be explicitly enabled using CCDirector::setDepthBufferFormat, prior to the Director being attached to the openGL view. If I add the setDepthBufferFormat call prior to the CCDirector::setOpenGLView call, then assert in setDepthBufferFormat throws a null pointer exception when it tries to dereference the pointer m_pobOpenGLView in isOpenGLAttached().
When I add a check for a null pointer in isOpenGLAttached, then everything works as expected.
Is this a bug I should report, or am I doing something crazy?
Thanks!
Ben