gl-renderer: make use of linux_dmabuf_buffer_get_user_data()

... to get the user_data. Like everywhere else through weston.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
dev
Emil Velikov 7 years ago committed by Pekka Paalanen
parent 8b964bca50
commit 2d8331c4b7
  1. 2
      libweston/gl-renderer.c

@ -1748,7 +1748,7 @@ gl_renderer_attach_egl(struct weston_surface *es, struct weston_buffer *buffer,
static void static void
gl_renderer_destroy_dmabuf(struct linux_dmabuf_buffer *dmabuf) gl_renderer_destroy_dmabuf(struct linux_dmabuf_buffer *dmabuf)
{ {
struct dmabuf_image *image = dmabuf->user_data; struct dmabuf_image *image = linux_dmabuf_buffer_get_user_data(dmabuf);
dmabuf_image_destroy(image); dmabuf_image_destroy(image);
} }

Loading…
Cancel
Save