am 8ecfb60a: Merge "Fix a bug that prevented the creation of EGL shared contexts." into gingerbread

Merge commit '8ecfb60a8e74dfcd51bbf3f236d5f414a4d5ac7d' into gingerbread-plus-aosp

* commit '8ecfb60a8e74dfcd51bbf3f236d5f414a4d5ac7d':
  Fix a bug that prevented the creation of EGL shared contexts.
This commit is contained in:
Mathias Agopian
2010-07-02 12:34:22 -07:00
committed by Android Git Automerger

View File

@@ -1045,6 +1045,10 @@ EGLContext eglCreateContext(EGLDisplay dpy, EGLConfig config,
int i=0, index=0; int i=0, index=0;
egl_connection_t* cnx = validate_display_config(dpy, config, dp, i, index); egl_connection_t* cnx = validate_display_config(dpy, config, dp, i, index);
if (cnx) { 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( EGLContext context = cnx->egl.eglCreateContext(
dp->disp[i].dpy, dp->disp[i].config[index], dp->disp[i].dpy, dp->disp[i].config[index],
share_list, attrib_list); share_list, attrib_list);