From: Kristian Høgsberg Date: Thu, 6 Jan 2011 20:45:19 +0000 (-0500) Subject: Pass EGL_NO_CONTEXT to eglCreateImageKHR for EGL_DRM_BUFFER_MESA target X-Git-Tag: 0.85.0~712 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=175e6cec39dfd25b0b8830a98c859077a9d2515e;p=profile%2Fivi%2Fweston.git Pass EGL_NO_CONTEXT to eglCreateImageKHR for EGL_DRM_BUFFER_MESA target --- diff --git a/compositor/compositor-x11.c b/compositor/compositor-x11.c index 18cb655..df9329f 100644 --- a/compositor/compositor-x11.c +++ b/compositor/compositor-x11.c @@ -436,7 +436,8 @@ x11_compositor_create_output(struct x11_compositor *c, int width, int height) attribs[3] = reply->height; attribs[5] = buffers[0].pitch / 4; output->image = - eglCreateImageKHR(c->base.display, c->base.context, + eglCreateImageKHR(c->base.display, + EGL_NO_CONTEXT, EGL_DRM_BUFFER_MESA, (EGLClientBuffer) buffers[0].name, attribs); diff --git a/compositor/drm.c b/compositor/drm.c index d0eab29..dd5788b 100644 --- a/compositor/drm.c +++ b/compositor/drm.c @@ -137,7 +137,7 @@ drm_create_buffer(struct wl_client *client, struct wl_drm *drm_base, attribs[3] = height; attribs[5] = stride / 4; image = eglCreateImageKHR(compositor->display, - compositor->context, + EGL_NO_CONTEXT, EGL_DRM_BUFFER_MESA, (EGLClientBuffer) name, attribs); if (image == NULL) {