How many Android devices support GLSurfaceView.setPreserveEGLContextOnPause today?
Seems that OpenGL-ES 2.0 and forward all allow multiple EGL contexts. That is what the GLSurfaceView.GLThreadManager.checkGLESVersion()
method assumes. And if you have multiple contexts, it is not necessary to terminate the EGL when pausing, neither release the EGL context when pausing.
Also, from the GLSurfaceView.GLThreadManager
source code (around line 1908), we have the following comment, just after the checkGLESVersion()
method:
// This check was required for some pre-Android-3.0 hardware.
// Android 3.0 provides support for hardware-accelerated views,
// therefore multiple EGL contexts are supported on all Android 3.0+ EGL drivers.
See more details at Grepcode GLSurfaceView.GLThreadManager.