I have an Android app that renders an OpenGL scene. All of the OpenGL code is done in c++.
The problem I am having is that when I press the home button, and then return to the app, the OpenGL calls start to return errors.
Specifically, the ES 1.1 version fails on glDrawArrays
with a logcat error <gl_draw_error_checks::550>: GL_INVALID_OPERATION
The ES 2.0 version fails on glUseProgram
with a locat error of <core_glUseProgram:1496>: GL_INVALID_VALUE
.
What is the proper process for leaving / returning to an OpenGL ES application?