Will texture buffers be flushed when deleting OpenGL ES context (iPhone)?

Or do I need glDeleteTextures, glDeleteTextures one by one? Or are there any glDeleteAllTextures functions like a function?

+3
source share
1 answer

Textures (and other OpenGL ES resources) are managed by EAGLSharegroup objects. These objects are automatically created for you when you create EAGLContext objects and are deleted when you release EAGLContext objects.

So, a short answer to your question: no, you do not need to delete all the textures before you release your context.

+4
source

Source: https://habr.com/ru/post/1771070/


All Articles