From f05751aa2af1a8ec83c2d110385aab1b7e735238 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Wed, 16 Mar 2011 13:49:38 +0100 Subject: egl/wayland: Update to per-surface frame events --- src/gallium/state_trackers/egl/wayland/native_wayland.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gallium/state_trackers/egl') diff --git a/src/gallium/state_trackers/egl/wayland/native_wayland.c b/src/gallium/state_trackers/egl/wayland/native_wayland.c index 068c3cd7c8e..fd35b45373d 100644 --- a/src/gallium/state_trackers/egl/wayland/native_wayland.c +++ b/src/gallium/state_trackers/egl/wayland/native_wayland.c @@ -280,7 +280,7 @@ wayland_surface_validate(struct native_surface *nsurf, uint attachment_mask, } static void -wayland_frame_callback(void *data, uint32_t time) +wayland_frame_callback(struct wl_surface *surf, void *data, uint32_t time) { struct wayland_surface *surface = data; @@ -307,8 +307,8 @@ wayland_surface_swap_buffers(struct native_surface *nsurf) wl_display_iterate(display->dpy->display, WL_DISPLAY_READABLE); surface->block_swap_buffers = TRUE; - wl_display_frame_callback(display->dpy->display, wayland_frame_callback, - surface); + wl_display_frame_callback(display->dpy->display, surface->win->surface, + wayland_frame_callback, surface); if (surface->type == WL_WINDOW_SURFACE) { resource_surface_swap_buffers(surface->rsurf, -- cgit v1.2.3