[vulkan] Fix array parsing size error

The size was not getting written if it was the first value in the
structure.
This commit is contained in:
Bill Currie 2021-01-23 20:40:11 +09:00
parent 4283d690ad
commit 77a8f90113

View file

@ -282,7 +282,7 @@ parse_array (const plfield_t *field, const plitem_t *item,
}
*value = malloc (array->stride * arr->size);
memcpy (*value, arr->a, array->stride * arr->size);
if ((void *) size > data) {
if ((void *) size >= data) {
*size = arr->size;
}
free (arr);