iPhone: How much OpenGL cleanup do I need to do when a context goes away?
Posted
by quixoto
on Stack Overflow
See other posts from Stack Overflow
or by quixoto
Published on 2010-04-09T21:34:21Z
Indexed on
2010/04/09
22:03 UTC
Read the original article
Hit count: 434
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 -release
ing 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.
© Stack Overflow or respective owner