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 *.
This commit is contained in:
Kristian Høgsberg 2013-08-07 11:59:54 -07:00
parent ce7a5d8794
commit 4722939d18
1 changed files with 1 additions and 2 deletions

View File

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