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?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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, …).