Skip to content

Commit d006247

Browse files
Jamie GennisJean-Baptiste Queru
authored andcommitted
Fix a bug that prevented the creation of EGL shared contexts.
Change-Id: I6b0ec5ef86abdd4e9083067ba297107cfb094df3
1 parent 4506c62 commit d006247

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

opengl/libs/EGL/egl.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,6 +1043,10 @@ EGLContext eglCreateContext(EGLDisplay dpy, EGLConfig config,
10431043
int i=0, index=0;
10441044
egl_connection_t* cnx = validate_display_config(dpy, config, dp, i, index);
10451045
if (cnx) {
1046+
if (share_list != EGL_NO_CONTEXT) {
1047+
egl_context_t* const c = get_context(share_list);
1048+
share_list = c->context;
1049+
}
10461050
EGLContext context = cnx->egl.eglCreateContext(
10471051
dp->disp[i].dpy, dp->disp[i].config[index],
10481052
share_list, attrib_list);

0 commit comments

Comments
 (0)