mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2025-02-16 18:12:09 +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);
|
wlr_signal_emit_safe(&output->events.precommit, &pre_event);
|
||||||
|
|
||||||
if (!output->impl->commit(output)) {
|
if (!output->impl->commit(output)) {
|
||||||
|
output_clear_back_buffer(output);
|
||||||
output_state_clear(&output->pending);
|
output_state_clear(&output->pending);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue