After migrating to iOS4, I started to get the following error:
OpenGL error 0x0506 in -[EAGLView swapBuffers], and screen touches were not working.
After adding CHECK_GL_ERROR in several places, the line
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); in CCDirector causes the problem. Apparently the frambuffer is not initialized properly. This happens both in the phone and simulator.
OpenGL error 0x0506 in -[CCDirector mainLoop]
Any ideas?
Thank you!