From 40a8385d8b7db27a6d8b7a8f3a6500b8694bcc5e Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Sun, 11 Jun 2017 23:09:44 +0100 Subject: [PATCH] egl: improve dri2_fallback_swap_buffers_with_damage() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Let's (try to) set damages before swapping buffers. Signed-off-by: Eric Engestrom Reviewed-by: Tapani Pälli --- src/egl/drivers/dri2/egl_dri2_fallbacks.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/egl/drivers/dri2/egl_dri2_fallbacks.h b/src/egl/drivers/dri2/egl_dri2_fallbacks.h index d8363c9bdd7..604db881a8f 100644 --- a/src/egl/drivers/dri2/egl_dri2_fallbacks.h +++ b/src/egl/drivers/dri2/egl_dri2_fallbacks.h @@ -68,6 +68,7 @@ dri2_fallback_swap_buffers_with_damage(_EGLDriver *drv, _EGLDisplay *dpy, const EGLint *rects, EGLint n_rects) { struct dri2_egl_display *dri2_dpy = dri2_egl_display(dpy); + dri2_dpy->vtbl->set_damage_region(drv, dpy, surf, rects, n_rects); return dri2_dpy->vtbl->swap_buffers(drv, dpy, surf); } -- 2.30.2