Currently I used Vivante OpenGLES 2.0 and EGL 1.4 library in i.MX6 platform, and I want to share resource(such as texture) between two egl context in one thread.
Here is what I am doing:
mSharedContext = eglCreateContext( mEglDisplay, mEglConfig, EGL_NO_CONTEXT, contextAttribs);
mMainContext = eglCreateContext( mEglDisplay, mEglConfig, mSharedContext , contextAttribs);
on the shared context, I call eglMakeCurrent() and render to a texture. The contenet of the texture is right.
on the main contexnt, I draw the texture which was rendered in shared context to the screen, but the screen is blank.
If I draw the texture on the shared context, I could see the context of the texture on the screen.
So I wonder whether i.MX6 platform or Vivante OpenGLES 2.0 library could support shared resources(such as texture) between two egl context.
Could anyone have any ideas about it?