From 5149f91c8c56d2f5aa1f407b2818e25a563561c1 Mon Sep 17 00:00:00 2001 From: Jamie Gennis Date: Fri, 2 Jul 2010 11:39:12 -0700 Subject: Fix a bug that prevented the creation of EGL shared contexts. Change-Id: I6b0ec5ef86abdd4e9083067ba297107cfb094df3 --- opengl/libs/EGL/egl.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'opengl') diff --git a/opengl/libs/EGL/egl.cpp b/opengl/libs/EGL/egl.cpp index ba09d08..714fd3e 100644 --- a/opengl/libs/EGL/egl.cpp +++ b/opengl/libs/EGL/egl.cpp @@ -1045,6 +1045,10 @@ EGLContext eglCreateContext(EGLDisplay dpy, EGLConfig config, int i=0, index=0; egl_connection_t* cnx = validate_display_config(dpy, config, dp, i, index); if (cnx) { + if (share_list != EGL_NO_CONTEXT) { + egl_context_t* const c = get_context(share_list); + share_list = c->context; + } EGLContext context = cnx->egl.eglCreateContext( dp->disp[i].dpy, dp->disp[i].config[index], share_list, attrib_list); -- cgit v1.1