summaryrefslogtreecommitdiffstats
path: root/opengl
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2010-07-02 13:39:38 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-07-02 13:39:38 -0700
commit56c132c24e991cabb9fd068ab2c2c555125e8388 (patch)
treecd8b7758b34d70dd7877f6b4ffc0a2f95e94321b /opengl
parent838fd9c43007ba59ebd1e85b9466947ceeb210da (diff)
parent5219a82f9d64a7d13401dcf9a0703a0ca2cd842d (diff)
downloadframeworks_base-56c132c24e991cabb9fd068ab2c2c555125e8388.zip
frameworks_base-56c132c24e991cabb9fd068ab2c2c555125e8388.tar.gz
frameworks_base-56c132c24e991cabb9fd068ab2c2c555125e8388.tar.bz2
am 5219a82f: am 8ecfb60a: Merge "Fix a bug that prevented the creation of EGL shared contexts." into gingerbread
Merge commit '5219a82f9d64a7d13401dcf9a0703a0ca2cd842d' * commit '5219a82f9d64a7d13401dcf9a0703a0ca2cd842d': Fix a bug that prevented the creation of EGL shared contexts.
Diffstat (limited to 'opengl')
-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);