Commit aa333c63 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

d3dcompiler: Respect arrays in struct fields.

parent 867fe223
...@@ -789,7 +789,10 @@ static struct list *gen_struct_fields(struct hlsl_type *type, DWORD modifiers, s ...@@ -789,7 +789,10 @@ static struct list *gen_struct_fields(struct hlsl_type *type, DWORD modifiers, s
d3dcompiler_free(v); d3dcompiler_free(v);
return list; 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->name = v->name;
field->modifiers = modifiers; field->modifiers = modifiers;
field->semantic = v->semantic; field->semantic = v->semantic;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment