Skip to content
/ mesa Public
forked from notaz/mesa
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/egl/drivers/switch/egl_switch.c
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@ switch_create_context(_EGLDriver *drv, _EGLDisplay *dpy, _EGLConfig *conf,
struct switch_egl_context *context;
struct switch_egl_display *display = switch_egl_display(dpy);
struct switch_egl_config *config = switch_egl_config(conf);
struct switch_egl_context* share_cont = switch_egl_context(share_list);
CALLED();

context = (struct switch_egl_context*) calloc(1, sizeof (*context));
Expand Down Expand Up @@ -601,7 +602,7 @@ switch_create_context(_EGLDriver *drv, _EGLDisplay *dpy, _EGLConfig *conf,
}

enum st_context_error error;
context->stctx = display->stapi->create_context(display->stapi, display->stmgr, &attribs, &error, NULL);
context->stctx = display->stapi->create_context(display->stapi, display->stmgr, &attribs, &error, share_cont ? share_cont->stctx : NULL);
if (error != ST_CONTEXT_SUCCESS) {
_eglError(EGL_BAD_MATCH, "switch_create_context");
goto cleanup;
Expand Down