From 6259fd23fbaecbea5a5fb71f2a0bf3735b4c17cd Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 11 Jun 2021 18:42:00 +0200 Subject: [PATCH] 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. --- types/wlr_output.c | 1 + 1 file changed, 1 insertion(+) 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; }