summaryrefslogtreecommitdiffstats
path: root/opengl/libs
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2010-07-02 11:39:12 -0700
committerSteve Kondik <shade@chemlab.org>2010-07-30 15:33:43 -0400
commita876a72cb687b6e341c194bde6929cc42ad21e79 (patch)
tree912684e724a447c90bf2ab538aba5a349d18ef5a /opengl/libs
parentbe62d4ac0885bf69da1b0642a16c4c29b3e826ad (diff)
downloadframeworks_base-a876a72cb687b6e341c194bde6929cc42ad21e79.zip
frameworks_base-a876a72cb687b6e341c194bde6929cc42ad21e79.tar.gz
frameworks_base-a876a72cb687b6e341c194bde6929cc42ad21e79.tar.bz2
Fix a bug that prevented the creation of EGL shared contexts.
Change-Id: I6b0ec5ef86abdd4e9083067ba297107cfb094df3
Diffstat (limited to 'opengl/libs')
-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 89b3e1f..40317e7 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);