aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-10-31 15:08:45 +0100
committeremersion <contact@emersion.fr>2017-10-31 15:08:45 +0100
commitd2581eadbc8cc1613a04f10b8bdf113a00eaa240 (patch)
tree54f0e1b42cd7d5a7f2f4b22101d44c76c7cdd118
parent6b6895168b46e8d5a8c231f083962172dc942e32 (diff)
Assert mandatory impl fields in wlr_output_init
-rw-r--r--types/wlr_output.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/types/wlr_output.c b/types/wlr_output.c
index 38bb03d5..abfc6d26 100644
--- a/types/wlr_output.c
+++ b/types/wlr_output.c
@@ -191,6 +191,8 @@ void wlr_output_set_position(struct wlr_output *output, int32_t lx,
void wlr_output_init(struct wlr_output *output, struct wlr_backend *backend,
const struct wlr_output_impl *impl) {
+ assert(impl->enable && impl->make_current && impl->swap_buffers &&
+ impl->transform);
output->backend = backend;
output->impl = impl;
wl_list_init(&output->modes);