Each GLSurfaceView
is constructed with its own EGLContext. Using the same context across multiple GLSurfaceViews
to have access to the same textures seems to not work on across all GPUs (as shown here).
My question is whether there is a way to share a GL_TEXTURE_EXTERNAL_OES
texture across multiple GLSurfaceViews
with their default, separate contexts. By default only the thread that creates the GL_TEXTURE_EXTERNAL_OES
would be able to access the texture, but I am looking for a way to let the other threads in separate EGL contexts read from this texture, and then render to their separate GLSurfaceViews
.
Any guidance would be appreciated. Thank you.