d3dcompiler: Set the struct base type to HLSL_TYPE_VOID.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2020-04-29 21:54:40 -05:00 committed by Alexandre Julliard
parent 4952bcfa4c
commit 867fe22346
1 changed files with 1 additions and 0 deletions

View File

@ -817,6 +817,7 @@ static struct hlsl_type *new_struct_type(const char *name, struct list *fields)
return NULL;
}
type->type = HLSL_CLASS_STRUCT;
type->base_type = HLSL_TYPE_VOID;
type->name = name;
type->dimx = type->dimy = 1;
type->e.elements = fields;