aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-05-25 13:48:46 +0100
committeremersion <contact@emersion.fr>2018-05-29 18:47:19 +0100
commit65198b0aab2d77b8ea91696d94b045b440abefea (patch)
tree5cf4b774a694e3c6d22d9acc36239c56fcc3e352
parent2432c41a49277351f9159d2c7b0520b83f6dbbf0 (diff)
export-dmabuf: assert number of planes
-rw-r--r--types/wlr_export_dmabuf_v1.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/types/wlr_export_dmabuf_v1.c b/types/wlr_export_dmabuf_v1.c
index 590d5ffb..572da262 100644
--- a/types/wlr_export_dmabuf_v1.c
+++ b/types/wlr_export_dmabuf_v1.c
@@ -102,8 +102,7 @@ static void manager_handle_capture_output(struct wl_client *client,
zwlr_export_dmabuf_frame_v1_send_abort(frame->resource, 0);
return;
}
-
- // TODO: multiple layers support
+ assert(attribs->n_planes > 0);
uint32_t frame_flags = 0;
uint32_t mod_high = attribs->modifier[0] >> 32;