草庐IT

GLSurfaceViews

全部标签

android - 在 Android 平板电脑上共享 2 个 GLSurfaceViews 之间的 EGL2.0 上下文导致 EGL_BAD_ACCESS

我尝试通过以下代码在2个GLSurfaceView之间共享EGL上下文:createContext(EGL10egl,EGLDisplaydisplay,EGLConfigeglConfig){EGLContextshared=...;//acachedeglcontextint[]attrib_list={EGL_CONTEXT_CLIENT_VERSION,2,EGL10.EGL_NONE};EGLContextcontext=egl.eglCreateContext(display,eglConfig,shared==null?EGL10.EGL_NO_CONTEXT:share