iPhone: How much OpenGL cleanup do I need to do when a context goes away?
- by quixoto
I several views in an iPhone app which happen to use independent openGL contexts. They are not necessarily long-lived so they go away before the process does. And they have a couple textures in each.
Does -releaseing the EAGLContext cause all that GL state to get cleaned up for me? Or am I leaking textures etc by not finding a place to call glDeleteTextures from?
Thanks.