summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2010-07-02 12:32:33 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2010-07-02 12:32:33 -0700
commit8ecfb60a8e74dfcd51bbf3f236d5f414a4d5ac7d (patch)
tree32e6e8ade82ffb5ea2b1b3975d8d693dbbbd9863
parent125204b737deaaa7719f25d680e96b694c2b8de6 (diff)
parent5149f91c8c56d2f5aa1f407b2818e25a563561c1 (diff)
Merge "Fix a bug that prevented the creation of EGL shared contexts." into gingerbread
-rw-r--r--opengl/libs/EGL/egl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/opengl/libs/EGL/egl.cpp b/opengl/libs/EGL/egl.cpp
index ba09d082feec..714fd3eec7c5 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);