egl: improve dri2_fallback_swap_buffers_with_damage()
authorEric Engestrom <eric@engestrom.ch>
Sun, 11 Jun 2017 22:09:44 +0000 (23:09 +0100)
committerEric Engestrom <eric.engestrom@imgtec.com>
Tue, 13 Jun 2017 11:12:50 +0000 (12:12 +0100)
Let's (try to) set damages before swapping buffers.

Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/egl/drivers/dri2/egl_dri2_fallbacks.h

index d8363c9bdd72f296e59353b878570681a9050517..604db881a8f882f4672040dc449335d9edb7ceb4 100644 (file)
@@ -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);
 }