diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-02-10 09:45:18 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-10 09:45:18 -0500 |
commit | 07856580c446607fa55888db8ae75491e0447c20 (patch) | |
tree | fe1ab648a792adfd9d66f3975ff093f2ed5a4844 /backend/x11 | |
parent | 039f112c31eea17e45c121db9b470fa36bbf9af9 (diff) | |
parent | bf6d24540000339029a30715f1f72b5b95a45018 (diff) |
Merge pull request #619 from emersion/swap-with-damage
Swap buffers with damage
Diffstat (limited to 'backend/x11')
-rw-r--r-- | backend/x11/backend.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/backend/x11/backend.c b/backend/x11/backend.c index 44e29be1..411d0ef6 100644 --- a/backend/x11/backend.c +++ b/backend/x11/backend.c @@ -401,16 +401,12 @@ static bool output_make_current(struct wlr_output *wlr_output, int *buffer_age) return wlr_egl_make_current(&x11->egl, output->surf, buffer_age); } -static bool output_swap_buffers(struct wlr_output *wlr_output) { +static bool output_swap_buffers(struct wlr_output *wlr_output, + pixman_region32_t *damage) { struct wlr_x11_output *output = (struct wlr_x11_output *)wlr_output; struct wlr_x11_backend *x11 = output->x11; - if (!eglSwapBuffers(x11->egl.display, output->surf)) { - wlr_log(L_ERROR, "eglSwapBuffers failed: %s", egl_error()); - return false; - } - - return true; + return wlr_egl_swap_buffers(&x11->egl, output->surf, damage); } static struct wlr_output_impl output_impl = { |