mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
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:
parent
6977f3a843
commit
d3bd5f2a7b
4 changed files with 11 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue