mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/dxbc: Set the "elements_capacity" field as well in shader_parse_signature().
Leaving it as 0 mostly ends up doing the right thing in practice, but isn't quite right.
This commit is contained in:
Notes:
Henri Verbeet
2025-02-24 16:26:29 +01:00
Approved-by: Conor McCarthy (@cmccarthy) Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1371
@@ -477,6 +477,7 @@ static int shader_parse_signature(const struct vkd3d_shader_dxbc_section_desc *s
|
|||||||
}
|
}
|
||||||
|
|
||||||
s->elements = e;
|
s->elements = e;
|
||||||
|
s->elements_capacity = count;
|
||||||
s->element_count = count;
|
s->element_count = count;
|
||||||
|
|
||||||
return VKD3D_OK;
|
return VKD3D_OK;
|
||||||
|
Reference in New Issue
Block a user