Hi,
I have been trying to share textures across 2 threads in android native code. Below is what I am trying to achieve,
In non-ui thread, I create a texture, bind it as a FBO and render onto this texture (using glDraw* calls).
In UI thread, I try to blit this texture onto screen.
I tried EGLContext sharing mechanism to share the texture across threads (by passing UI thread EGLContext as share texture argument to eglCreateTexture in non-ui thread). However, I do not see any output on screen, and don't even get any GL_ERROR messages!
What is the ideal way to share textures across threads? Any example code -snippets?
Thanks,