backend/noop: add missing rollback_render output impl

3c5dbfd97c ("output: make rollback_render mandatory") makes a no-op
output init fail without this function.
This commit is contained in:
Simon Ser 2020-06-19 21:04:20 +02:00 committed by Drew DeVault
parent 155d57b01d
commit c930160286

View file

@ -17,6 +17,10 @@ static bool output_attach_render(struct wlr_output *wlr_output,
return false; return false;
} }
static void output_rollback_render(struct wlr_output *wlr_output) {
// This space is intentionally left blank
}
static bool output_commit(struct wlr_output *wlr_output) { static bool output_commit(struct wlr_output *wlr_output) {
if (wlr_output->pending.committed & WLR_OUTPUT_STATE_ENABLED) { if (wlr_output->pending.committed & WLR_OUTPUT_STATE_ENABLED) {
wlr_log(WLR_DEBUG, "Cannot disable a noop output"); wlr_log(WLR_DEBUG, "Cannot disable a noop output");
@ -50,6 +54,7 @@ static void output_destroy(struct wlr_output *wlr_output) {
static const struct wlr_output_impl output_impl = { static const struct wlr_output_impl output_impl = {
.destroy = output_destroy, .destroy = output_destroy,
.attach_render = output_attach_render, .attach_render = output_attach_render,
.rollback_render = output_rollback_render,
.commit = output_commit, .commit = output_commit,
}; };