diff options
-rw-r--r-- | src/egl/drivers/dri2/platform_wayland.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c index 9dfe4272bcf..8f462c02c76 100644 --- a/src/egl/drivers/dri2/platform_wayland.c +++ b/src/egl/drivers/dri2/platform_wayland.c @@ -610,11 +610,10 @@ dri2_swap_buffers_with_damage(_EGLDriver *drv, } } - wl_surface_commit(dri2_surf->wl_win->surface); - (*dri2_dpy->flush->flush)(dri2_surf->dri_drawable); (*dri2_dpy->flush->invalidate)(dri2_surf->dri_drawable); + wl_surface_commit(dri2_surf->wl_win->surface); wl_display_flush(dri2_dpy->wl_dpy); return EGL_TRUE; |