From 2432c41a49277351f9159d2c7b0520b83f6dbbf0 Mon Sep 17 00:00:00 2001 From: emersion Date: Fri, 25 May 2018 11:11:29 +0100 Subject: [PATCH] export-dmabuf: correctly send the number of planes per layer --- types/wlr_export_dmabuf_v1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/wlr_export_dmabuf_v1.c b/types/wlr_export_dmabuf_v1.c index cbd54749..590d5ffb 100644 --- a/types/wlr_export_dmabuf_v1.c +++ b/types/wlr_export_dmabuf_v1.c @@ -114,7 +114,7 @@ static void manager_handle_capture_output(struct wl_client *client, attribs->flags, frame_flags, mod_high, mod_low, attribs->n_planes, 1); zwlr_export_dmabuf_frame_v1_send_layer(frame->resource, 0, - attribs->format, 1); + attribs->format, attribs->n_planes); for (int i = 0; i < attribs->n_planes; ++i) { // TODO: what to do if the kernel doesn't support seek on buffer