From: Kristian Høgsberg Date: Mon, 7 Jun 2010 02:44:12 +0000 (-0400) Subject: Use eglCreateImageKHR() the right way X-Git-Tag: 0.85.0~948 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1292383025d2e5b9c0f54046c94f7ec1bbed2493;p=platform%2Fupstream%2Fweston.git Use eglCreateImageKHR() the right way --- diff --git a/compositor.c b/compositor.c index ea52eef..8a2b956 100644 --- a/compositor.c +++ b/compositor.c @@ -647,7 +647,6 @@ surface_attach(struct wl_client *client, EGLint attribs[] = { EGL_WIDTH, 0, EGL_HEIGHT, 0, - EGL_IMAGE_NAME_MESA, 0, EGL_IMAGE_STRIDE_MESA, 0, EGL_IMAGE_FORMAT_MESA, EGL_FORMAT_RGBA_8888_KHR, EGL_NONE @@ -676,12 +675,11 @@ surface_attach(struct wl_client *client, attribs[1] = width; attribs[3] = height; - attribs[5] = name; - attribs[7] = stride / 4; + attribs[5] = stride / 4; es->image = eglCreateImageKHR(ec->display, ec->context, - EGL_DRM_IMAGE_MESA, - NULL, attribs); + EGL_DRM_IMAGE_MESA, + (EGLClientBuffer) name, attribs); glEGLImageTargetTexture2DOES(GL_TEXTURE_2D, es->image); }