tjb
tjb

Reputation: 11728

Android: Properly cleaning up after OpenGL

Are there any specific cleanup actions that need to be taken to clean up after using OpenGL ES on Android or does everything happen automatically?

Upvotes: 4

Views: 753

Answers (1)

Christian Rau
Christian Rau

Reputation: 45948

Whereas the OS should clean up any OpenGL resources (like textures, VBOs, the framebuffer, ...) once your program ends (this should hold on Android like for any other OS) or the GL context is destroyed, it is still good practice to delete any OpenGL objects once they're not needed anymore using their respective destructors (like glDeleteTextures, glDeleteBuffers, ...).

Upvotes: 5

Related Questions