I have no problem creating two separate GL contexts. It works and no errors are generated (tested on G1 (1.6) and Milestone (2.1)). But the problem is that resources sharing between contexts does not work as it is described in GLES 1.0 specification. So I am not sure does Android OGL implementation conform to GLES spec?
Thanks. On Jun 27, 5:48 am, Lance Nanek <[email protected]> wrote: > Does the G1 driver support > that?http://groups.google.com/group/android-framework/browse_thread/thread... > > On Jun 23, 4:51 pm, OpenG <[email protected]> wrote: > > > > > Hello, > > > I have problems sharing texture resource between two OGL contexts. > > > I have created two OGL contexts using > > EGL10.eglCreateContext(EGLDisplay display, EGLConfig config, > > EGLContext share_context, int[] attrib_list) method. Then creating > > second context I pass the first OGL Context as parameter > > "share_context". By OpenGL specs this means that resource (like > > textures, VBO's) should be shared by these two contexts. > > > After I do makeCurrent with these contexts in two separate threads > > (one using windowSurface, another - pbufferSurface). > > > But the problem is if i load texture into the first OGL context I can > > not access this resource from the second context. It looks like these > > contexts do not share resources at all. > > > Can somebody confirm this is a bug in OpenGL implementation? > > > Tested on Emulator, G1 and Milestone. > > > Context creation code: > > mEgl.eglCreateContext(mEglDisplay, mEglConfig, EGL10.EGL_NO_CONTEXT, > > null); > > if (mEglContext == null || mEglContext == EGL10.EGL_NO_CONTEXT) { > > throw new RuntimeException("createContext failed"); > > > } > > > mSecEglContext = mEgl.eglCreateContext(mEglDisplay, mEglConfig, > > mEglContext, null); > > if (mSecEglContext == null || mSecEglContext == EGL10.EGL_NO_CONTEXT) > > { > > throw new RuntimeException("Secondary createContext failed"); > > > } -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

