Pass EGL_NO_CONTEXT to eglCreateImageKHR for EGL_DRM_BUFFER_MESA target

This commit is contained in:
Kristian Høgsberg 2011-01-06 15:45:19 -05:00
parent f6b1471fd8
commit 175e6cec39
2 changed files with 3 additions and 2 deletions

View file

@ -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) {