export-dmabuf: assert number of planes
This commit is contained in:
parent
2432c41a49
commit
65198b0aab
|
@ -102,8 +102,7 @@ static void manager_handle_capture_output(struct wl_client *client,
|
||||||
zwlr_export_dmabuf_frame_v1_send_abort(frame->resource, 0);
|
zwlr_export_dmabuf_frame_v1_send_abort(frame->resource, 0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
assert(attribs->n_planes > 0);
|
||||||
// TODO: multiple layers support
|
|
||||||
|
|
||||||
uint32_t frame_flags = 0;
|
uint32_t frame_flags = 0;
|
||||||
uint32_t mod_high = attribs->modifier[0] >> 32;
|
uint32_t mod_high = attribs->modifier[0] >> 32;
|
||||||
|
|
Loading…
Reference in New Issue