EAGLView orientation changes and strange buffering

Posted by Drew on Stack Overflow See other posts from Stack Overflow or by Drew
Published on 2009-06-09T12:09:53Z Indexed on 2010/04/19 11:03 UTC
Read the original article Hit count: 358

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?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk