summaryrefslogtreecommitdiffstats
path: root/opengl/libs/EGL/egl.cpp
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2010-07-02 11:39:12 -0700
committerJamie Gennis <jgennis@google.com>2010-07-02 12:05:07 -0700
commit4c39f8f9e2df75a5b53b3ccae712a8946195a8a3 (patch)
treeb2a28e876985b7cda7d15b4ca3c25c6588dbe4d0 /opengl/libs/EGL/egl.cpp
parent3b9900423c8f18d4eb83ba2575e51aa8840145ef (diff)
downloadframeworks_native-4c39f8f9e2df75a5b53b3ccae712a8946195a8a3.zip
frameworks_native-4c39f8f9e2df75a5b53b3ccae712a8946195a8a3.tar.gz
frameworks_native-4c39f8f9e2df75a5b53b3ccae712a8946195a8a3.tar.bz2
Fix a bug that prevented the creation of EGL shared contexts.
Change-Id: I6b0ec5ef86abdd4e9083067ba297107cfb094df3
Diffstat (limited to 'opengl/libs/EGL/egl.cpp')
-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 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);