mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/hlsl: Handle static struct initializer instructions.
Signed-off-by: Francisco Casas <fcasas@codeweavers.com> Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7cee81cf3e
commit
9c518b45d1
@ -1644,11 +1644,6 @@ static struct list *declare_vars(struct hlsl_ctx *ctx, struct hlsl_type *basic_t
|
|||||||
if (type->type == HLSL_CLASS_STRUCT)
|
if (type->type == HLSL_CLASS_STRUCT)
|
||||||
{
|
{
|
||||||
struct_var_initializer(ctx, var, &v->initializer);
|
struct_var_initializer(ctx, var, &v->initializer);
|
||||||
list_move_tail(statements_list, v->initializer.instrs);
|
|
||||||
|
|
||||||
free_parse_initializer(&v->initializer);
|
|
||||||
vkd3d_free(v);
|
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user