diff options
author | Simon Ser <contact@emersion.fr> | 2020-04-06 11:43:58 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-04-08 17:33:00 +0200 |
commit | d3bd5f2a7ba83567983c4a53ee6a69c3f8f6b25f (patch) | |
tree | efa3825bccd17ee283c087d1c330fa67bb14d97d /backend/x11 | |
parent | 6977f3a843c7a9fc7b7cd4a5d75232c583132cf8 (diff) |
backend: reset EGL surface after buffer swap
This prevents GL commands to affect a previously current EGL surface
after a buffer swap.
Diffstat (limited to 'backend/x11')
-rw-r--r-- | backend/x11/output.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/backend/x11/output.c b/backend/x11/output.c index 6546c23e..4e016afe 100644 --- a/backend/x11/output.c +++ b/backend/x11/output.c @@ -157,6 +157,8 @@ static bool output_commit(struct wlr_output *wlr_output) { wlr_output_send_present(wlr_output, NULL); } + wlr_egl_make_current(&x11->egl, EGL_NO_SURFACE, NULL); + return true; } |