diff options
author | Benjamin Franzke <[email protected]> | 2011-03-16 13:49:38 +0100 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2011-04-12 11:08:17 -0400 |
commit | f05751aa2af1a8ec83c2d110385aab1b7e735238 (patch) | |
tree | 72e9e04d2cfc504f3ddc9633d9bea6307f443e50 /src/egl | |
parent | b27f206b0cc9bf31bff6dd1abe66c4f21f3de21e (diff) |
egl/wayland: Update to per-surface frame events
Diffstat (limited to 'src/egl')
-rw-r--r-- | src/egl/drivers/dri2/platform_wayland.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c index 6969c137da8..0cc20bbc0bf 100644 --- a/src/egl/drivers/dri2/platform_wayland.c +++ b/src/egl/drivers/dri2/platform_wayland.c @@ -429,7 +429,7 @@ wayland_create_buffer(struct dri2_egl_surface *dri2_surf, __DRIbuffer *buffer) } static void -wayland_frame_callback(void *data, uint32_t time) +wayland_frame_callback(struct wl_surface *surface, void *data, uint32_t time) { struct dri2_egl_surface *dri2_surf = data; @@ -459,7 +459,8 @@ dri2_swap_buffers(_EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *draw) dri2_surf->block_swap_buffers = EGL_TRUE; wl_display_frame_callback(dri2_dpy->wl_dpy->display, - wayland_frame_callback, dri2_surf); + dri2_surf->wl_win->surface, + wayland_frame_callback, dri2_surf); if (dri2_surf->type == DRI2_WINDOW_SURFACE) { pointer_swap( |