vkd3d-shader/hlsl: Use a more sensible source location in add_constructor().

Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com>
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Francisco Casas <fcasas@codeweavers.com>
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Giovanni Mascellani 2022-05-03 11:57:16 +02:00 committed by Alexandre Julliard
parent 07e38212ec
commit 9ad6ad7065

View File

@ -2049,7 +2049,7 @@ static struct list *add_constructor(struct hlsl_ctx *ctx, struct hlsl_type *type
continue;
}
initialize_var_components(ctx, params->instrs, var, &idx, arg, &loc);
initialize_var_components(ctx, params->instrs, var, &idx, arg, &arg->loc);
}
if (!(load = hlsl_new_var_load(ctx, var, loc)))