Android NDK OpenGL glDeleteTextures causes error: call to OpenGL ES API with no current context
问题 I am working on an android application which renders video from an external camera. The video frames are rendered to the screen through opengl in the NDK layer as we do the communication with the camera in ndk and it is faster. I did not write the code as it came from a 3rd party (the developer of the camera) and they have implemented the method surfaceDestroyed in MyGLSurfaceView as follows: @Override public void surfaceDestroyed(SurfaceHolder holder) { Log.d(TAG, "Inside GL surfaceDestroyed