org.rajawali3d.view / TextureView / preserveEGLContextOnPause

preserveEGLContextOnPause

var preserveEGLContextOnPause: Boolean

Control whether the EGL context is preserved when the TextureView is paused and resumed.

If set to true, then the EGL context may be preserved when the TextureView is paused. Whether the EGL context is actually preserved or not depends upon whether the Android device that the program is running on can support an arbitrary number of EGL contexts or not. Devices that can only support a limited number of EGL contexts must release the EGL context in order to allow multiple applications to share the GPU.

If set to false, the EGL context will be released when the TextureView is paused, and recreated when the TextureView is resumed.

The default is false.