From d3bd5f2a7ba83567983c4a53ee6a69c3f8f6b25f Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 6 Apr 2020 11:43:58 +0200 Subject: backend: reset EGL surface after buffer swap This prevents GL commands to affect a previously current EGL surface after a buffer swap. --- backend/x11/output.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'backend/x11') 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; } -- cgit v1.2.3