From af2f69e6c1578f848d3e3222804444ff9cff83df Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 20 May 2020 12:39:35 +0200 Subject: render/egl: unset current context after swapping buffers After swapping buffers, it doesn't make sense to perform more rendering operations. Unset the context to reflect this. This commit makes it so the context is always only current between wlr_egl_make_current and wlr_egl_swap_buffers. This is an alternative to [1]. [1]: https://github.com/swaywm/wlroots/pull/2212 --- backend/x11/output.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'backend/x11') diff --git a/backend/x11/output.c b/backend/x11/output.c index 9366191c..953c2ba2 100644 --- a/backend/x11/output.c +++ b/backend/x11/output.c @@ -157,8 +157,6 @@ static bool output_commit(struct wlr_output *wlr_output) { wlr_output_send_present(wlr_output, NULL); } - wlr_egl_unset_current(&x11->egl); - return true; } -- cgit v1.2.3