IPhone: How much does OpenGL need to flush when the context goes away?

I have multiple views in an iPhone app that use independent openGL contexts. They are not necessarily durable, so they go away before the process. And they have a couple of textures in each.

Does it lead -release

to EAGLContext

anything that the GL state is cleared for me? Or am I losing textures etc. without finding a place to call glDeleteTextures

from?

Thanks.

+2


source to share


1 answer


All resources associated with a share group are destroyed when the last link to that group is released (usually by destroying all shared contexts).



Be careful: when you create a context for a stream, it is considered a link. The context will not be removed until it is separated from all threads to which it may have been bound.

+1


source







All Articles