Zebediah Figura : d3dcompiler: Respect arrays in struct fields.
Alexandre Julliard
julliard at winehq.org
Thu Apr 30 15:24:08 CDT 2020
Module: wine
Branch: master
Commit: aa333c63fca62e1958e341829d88897487c571f2
URL: https://source.winehq.org/git/wine.git/?a=commit;h=aa333c63fca62e1958e341829d88897487c571f2
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Wed Apr 29 21:54:41 2020 -0500
d3dcompiler: Respect arrays in struct fields.
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/d3dcompiler_43/hlsl.y | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dlls/d3dcompiler_43/hlsl.y b/dlls/d3dcompiler_43/hlsl.y
index 3b812de410..a628d8b20a 100644
--- a/dlls/d3dcompiler_43/hlsl.y
+++ b/dlls/d3dcompiler_43/hlsl.y
@@ -789,7 +789,10 @@ static struct list *gen_struct_fields(struct hlsl_type *type, DWORD modifiers, s
d3dcompiler_free(v);
return list;
}
- field->type = type;
+ if (v->array_size)
+ field->type = new_array_type(type, v->array_size);
+ else
+ field->type = type;
field->name = v->name;
field->modifiers = modifiers;
field->semantic = v->semantic;
More information about the wine-cvs
mailing list