Game Development Reference
In-Depth Information
Enabling OpenGL Stack Trace
Another option I recommend turning on for now is OpenGL traces .
Tap the Turn on OpenGL traces item, which is shown in Figure 13-8 . A popup will ask
you what type of trace you'd like. Pick the Call stack on glGetError option.
Figure 13-8 . Tap “Turn on OpenGL traces” to post the glGetError call stack to the debug log
For some reason, without OpenGL traces turned on, my device often failed to launch the
app, aborting with a GL_INVALID_OPERATION error. The error appeared long before
any of the project's own code ran, even before Cocos2D itself (and thus its OpenGL view)
began initializing.
Search WWH ::




Custom Search