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.
master
Simon Ser 3 years ago
parent 3345eaca89
commit 6259fd23fb

@ -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…
Cancel
Save