diff options
author | Simon Ser <contact@emersion.fr> | 2020-06-19 16:04:21 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-06-19 11:50:42 -0600 |
commit | 3c5dbfd97c77388686e5bec983a8e4705de27afe (patch) | |
tree | ef905c5d3032ada1e8f1b07ac6a7abc967fe6543 | |
parent | bf93d2e67c51e7f3f88620999f0225a34c039047 (diff) |
output: make rollback_render mandatory
If the output backend provides attach_render, assert it also provides a
way to revert it via rollback_render.
-rw-r--r-- | types/wlr_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/types/wlr_output.c b/types/wlr_output.c index a0ba8bd4..c0849e84 100644 --- a/types/wlr_output.c +++ b/types/wlr_output.c @@ -314,7 +314,7 @@ static void handle_display_destroy(struct wl_listener *listener, void *data) { void wlr_output_init(struct wlr_output *output, struct wlr_backend *backend, const struct wlr_output_impl *impl, struct wl_display *display) { - assert(impl->attach_render && impl->commit); + assert(impl->attach_render && impl->rollback_render && impl->commit); if (impl->set_cursor || impl->move_cursor) { assert(impl->set_cursor && impl->move_cursor); } |