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:
Simon Ser 2021-06-11 18:42:00 +02:00
parent 3345eaca89
commit 6259fd23fb

View file

@ -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;
}