mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader: Store the hlsl_reg_reservation struct directly.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
bb79ca76ae
commit
e8e138ed54
@@ -95,7 +95,6 @@ void hlsl_free_var(struct hlsl_ir_var *decl)
|
||||
{
|
||||
vkd3d_free((void *)decl->name);
|
||||
vkd3d_free((void *)decl->semantic.name);
|
||||
vkd3d_free((void *)decl->reg_reservation);
|
||||
vkd3d_free(decl);
|
||||
}
|
||||
|
||||
@@ -406,7 +405,8 @@ struct hlsl_ir_var *hlsl_new_var(struct hlsl_ctx *ctx, const char *name, struct
|
||||
if (semantic)
|
||||
var->semantic = *semantic;
|
||||
var->modifiers = modifiers;
|
||||
var->reg_reservation = reg_reservation;
|
||||
if (reg_reservation)
|
||||
var->reg_reservation = *reg_reservation;
|
||||
return var;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user