diff options
author | Simon Ser <contact@emersion.fr> | 2020-06-02 22:09:31 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-06-02 14:14:08 -0600 |
commit | 019fe8bb7efcb52e936ffea1003329ad13d2f64d (patch) | |
tree | 9c2b0f208217b773f90a1cf343611935b3bcbf93 /backend | |
parent | 47a30957d1ce36b66ea9b76d3d2bdd57258c6f64 (diff) |
backend/wayland: fix spurious eglSwapBuffers failures
This was introduced in [1]. However after reverting that PR I still
can't reproduce the bug the PR aimed to fix [2].
Since there's no good explanation why we would need to swap buffers
before resizing, let's just revert the PR.
[1]: https://github.com/swaywm/wlroots/pull/1486
[2]: https://github.com/swaywm/wlroots/issues/1371
Closes: https://github.com/swaywm/wlroots/issues/1768
Diffstat (limited to 'backend')
-rw-r--r-- | backend/wayland/output.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/backend/wayland/output.c b/backend/wayland/output.c index f816e8ad..f446ac3c 100644 --- a/backend/wayland/output.c +++ b/backend/wayland/output.c @@ -94,10 +94,8 @@ static const struct wp_presentation_feedback_listener static bool output_set_custom_mode(struct wlr_output *wlr_output, int32_t width, int32_t height, int32_t refresh) { struct wlr_wl_output *output = get_wl_output_from_output(wlr_output); - wlr_egl_swap_buffers(&output->backend->egl, output->egl_surface, NULL); wl_egl_window_resize(output->egl_window, width, height, 0, 0); wlr_output_update_custom_mode(&output->wlr_output, width, height, 0); - return true; } |