path: root/src/egl
diff options
authorAxel Davy <>2013-12-03 17:38:09 +0100
committerKristian Høgsberg <>2013-12-04 15:48:28 -0800
commit402bf6e8d098b64390277b229f7fae769e4449e5 (patch)
treeb623ab5c4c91559aa63b4c710f79f4daea2c2047 /src/egl
parent50205e11c60ec2ef64a6408c7a95155afcf8802e (diff)
egl/wayland: Flush the wl_display at the end of SwapBuffers
We would like the compositor to receive the commited buffer as soon as possible, so it has the time to treat it, and release old ones. We shouldn't rely on the client to flush the queue for us. Signed-off-by: Axel Davy <> Cc: "10.0"
Diffstat (limited to 'src/egl')
1 files changed, 2 insertions, 0 deletions
diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c
index f9065bbf0db..9dfe4272bcf 100644
--- a/src/egl/drivers/dri2/platform_wayland.c
+++ b/src/egl/drivers/dri2/platform_wayland.c
@@ -615,6 +615,8 @@ dri2_swap_buffers_with_damage(_EGLDriver *drv,
+ wl_display_flush(dri2_dpy->wl_dpy);
return EGL_TRUE;