diff options
| author | 2010-07-02 11:39:12 -0700 | |
|---|---|---|
| committer | 2010-07-29 17:54:14 -0700 | |
| commit | 51f65a34e12ec6f1aa737d45e260bb0c7a02b49b (patch) | |
| tree | dd6f8c827df736f8988257edbeb5a02fd7e997ba | |
| parent | 8c6529efe8517648ec8ef3b39c27f62ec9f343b4 (diff) | |
Fix a bug that prevented the creation of EGL shared contexts.
Change-Id: I6b0ec5ef86abdd4e9083067ba297107cfb094df3
| -rw-r--r-- | opengl/libs/EGL/egl.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/opengl/libs/EGL/egl.cpp b/opengl/libs/EGL/egl.cpp index 89b3e1f2ab..40317e7ed7 100644 --- a/opengl/libs/EGL/egl.cpp +++ b/opengl/libs/EGL/egl.cpp @@ -1043,6 +1043,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); |