mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-05 21:15:59 +01:00
output: reset back buffer on failed commit
On commit failure, we need to unbind the back buffer from the renderer. This fixes assertions triggered on commits following a failed commit where the compositor called wlr_output_attach_render.
This commit is contained in:
parent
3345eaca89
commit
6259fd23fb
1 changed files with 1 additions and 0 deletions
|
@ -737,6 +737,7 @@ bool wlr_output_commit(struct wlr_output *output) {
|
|||
wlr_signal_emit_safe(&output->events.precommit, &pre_event);
|
||||
|
||||
if (!output->impl->commit(output)) {
|
||||
output_clear_back_buffer(output);
|
||||
output_state_clear(&output->pending);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue