aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-06-11 18:42:00 +0200
committerSimon Ser <contact@emersion.fr>2021-06-13 13:17:30 +0200
commit6259fd23fbaecbea5a5fb71f2a0bf3735b4c17cd (patch)
treeaa8c1231ece4d5a2d8adff1030c4e5b2c7b6c1c4
parent3345eaca894deaf264f752786c5001b2de9ffdb0 (diff)
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.
-rw-r--r--types/wlr_output.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/types/wlr_output.c b/types/wlr_output.c
index 09ba4e68..0e21fcf2 100644
--- a/types/wlr_output.c
+++ b/types/wlr_output.c
@@ -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;
}