backend: reset EGL surface after buffer swap

This prevents GL commands to affect a previously current EGL surface
after a buffer swap.
This commit is contained in:
Simon Ser 2020-04-06 11:43:58 +02:00 committed by Drew DeVault
parent 6977f3a843
commit d3bd5f2a7b
4 changed files with 11 additions and 0 deletions

View file

@ -297,6 +297,8 @@ static bool output_commit(struct wlr_output *wlr_output) {
}
}
wlr_egl_make_current(&output->backend->egl, EGL_NO_SURFACE, NULL);
return true;
}