EAGLView orientation changes and strange buffering
- by Drew
I'm writing an app that offloads some heavy drawing into an EAGLView, and it does some lightweight stuff in UIKit on top. It seems that the GL render during an orientation change is cached somewhere, and I can't figure out how to get access to it. Specifically:
After an orientation change, calling glClear(GL_COLOR_BUFFER_BIT) isn't enough to clear the GL display (drawing is cached somewhere?) How can I clear this cache?
After an orientation change, glReadPixel() can no longer access pixels drawn before the orientation change. How can I get access to where this is stored?