From 4722939d181ca15a8b16632a178ded202f2faf37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Wed, 7 Aug 2013 11:59:54 -0700 Subject: [PATCH] gl-renderer.c: Cast wl_resource to void * to avoid warning The extension has been updated to take a wl_resource * now, but to avoid warnings when compiling against older versions, just cast to void *. --- src/gl-renderer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gl-renderer.c b/src/gl-renderer.c index 66533245..ab8dc2f9 100644 --- a/src/gl-renderer.c +++ b/src/gl-renderer.c @@ -1370,8 +1370,7 @@ gl_renderer_attach(struct weston_surface *es, struct weston_buffer *buffer) if (shm_buffer) gl_renderer_attach_shm(es, buffer, shm_buffer); - else if (gr->query_buffer(gr->egl_display, - (struct wl_buffer *)buffer->resource, + else if (gr->query_buffer(gr->egl_display, (void *) buffer->resource, EGL_TEXTURE_FORMAT, &format)) gl_renderer_attach_egl(es, buffer, format); else {