diff --git a/cogl/cogl-texture-2d.c b/cogl/cogl-texture-2d.c index 60b932b9d..2a497d313 100644 --- a/cogl/cogl-texture-2d.c +++ b/cogl/cogl-texture-2d.c @@ -294,12 +294,12 @@ _cogl_egl_texture_2d_new_from_image (CoglContext *ctx, #ifdef COGL_HAS_WAYLAND_EGL_SERVER_SUPPORT CoglTexture2D * cogl_wayland_texture_2d_new_from_buffer (CoglContext *ctx, - struct wl_resource *buffer_resource, + struct wl_resource *buffer, CoglError **error) { struct wl_shm_buffer *shm_buffer; - shm_buffer = wl_shm_buffer_get (buffer_resource); + shm_buffer = wl_shm_buffer_get (buffer); if (shm_buffer) { @@ -343,7 +343,6 @@ cogl_wayland_texture_2d_new_from_buffer (CoglContext *ctx, } else { - struct wl_buffer *buffer = (struct wl_buffer *) buffer_resource; int format, width, height; if (_cogl_egl_query_wayland_buffer (ctx, diff --git a/cogl/winsys/cogl-winsys-egl-feature-functions.h b/cogl/winsys/cogl-winsys-egl-feature-functions.h index 275884335..85c3079a4 100644 --- a/cogl/winsys/cogl-winsys-egl-feature-functions.h +++ b/cogl/winsys/cogl-winsys-egl-feature-functions.h @@ -88,7 +88,7 @@ COGL_WINSYS_FEATURE_FUNCTION (EGLBoolean, eglUnbindWaylandDisplay, struct wl_display *wayland_display)) COGL_WINSYS_FEATURE_FUNCTION (EGLBoolean, eglQueryWaylandBuffer, (EGLDisplay dpy, - struct wl_buffer *buffer, + struct wl_resource *buffer, EGLint attribute, EGLint *value)) COGL_WINSYS_FEATURE_END () diff --git a/cogl/winsys/cogl-winsys-egl-private.h b/cogl/winsys/cogl-winsys-egl-private.h index 9a3b4ad5f..8f33191d1 100644 --- a/cogl/winsys/cogl-winsys-egl-private.h +++ b/cogl/winsys/cogl-winsys-egl-private.h @@ -162,7 +162,7 @@ _cogl_egl_destroy_image (CoglContext *ctx, #ifdef EGL_WL_bind_wayland_display CoglBool _cogl_egl_query_wayland_buffer (CoglContext *ctx, - struct wl_buffer *buffer, + struct wl_resource *buffer, int attribute, int *value); #endif diff --git a/cogl/winsys/cogl-winsys-egl.c b/cogl/winsys/cogl-winsys-egl.c index 6464485af..8f5acf1cd 100644 --- a/cogl/winsys/cogl-winsys-egl.c +++ b/cogl/winsys/cogl-winsys-egl.c @@ -1046,7 +1046,7 @@ _cogl_egl_destroy_image (CoglContext *ctx, #ifdef EGL_WL_bind_wayland_display CoglBool _cogl_egl_query_wayland_buffer (CoglContext *ctx, - struct wl_buffer *buffer, + struct wl_resource *buffer, int attribute, int *value) {