From 1292383025d2e5b9c0f54046c94f7ec1bbed2493 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Sun, 6 Jun 2010 22:44:12 -0400 Subject: [PATCH] Use eglCreateImageKHR() the right way --- compositor.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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); } -- 2.7.4