aboutsummaryrefslogtreecommitdiff
path: root/backend/x11
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-05-20 12:39:35 +0200
committerDrew DeVault <sir@cmpwn.com>2020-05-20 17:39:34 +0200
commitaf2f69e6c1578f848d3e3222804444ff9cff83df (patch)
treeaaf4be2b47d3e1047a24085c4bc74003c382745b /backend/x11
parent72f28ed0b36e4f8a6a8732788bc557533ac36ab1 (diff)
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
Diffstat (limited to 'backend/x11')
-rw-r--r--backend/x11/output.c2
1 files changed, 0 insertions, 2 deletions
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;
}