mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
[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:
parent
4283d690ad
commit
77a8f90113
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue