aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-05-25 11:11:29 +0100
committeremersion <contact@emersion.fr>2018-05-29 18:47:18 +0100
commit2432c41a49277351f9159d2c7b0520b83f6dbbf0 (patch)
tree3d860a4e986a4a07560c7bdf83db51001098b53c
parent3f9796112ee2474bade668dede226b5e6f6144db (diff)
export-dmabuf: correctly send the number of planes per layer
-rw-r--r--types/wlr_export_dmabuf_v1.c2
1 files changed, 1 insertions, 1 deletions
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