vkd3d-shader/d3dbc: Avoid shadowing "instr" in write_sm1_jump().

This commit is contained in:
Zebediah Figura 2023-10-28 12:31:58 -05:00 committed by Alexandre Julliard
parent fcd6ec33bd
commit ca8492c855
Notes: Alexandre Julliard 2023-12-07 22:48:02 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/506

View File

@ -2253,7 +2253,7 @@ static void write_sm1_jump(struct hlsl_ctx *ctx, struct vkd3d_bytecode_buffer *b
{ {
struct hlsl_reg *reg = &jump->condition.node->reg; struct hlsl_reg *reg = &jump->condition.node->reg;
struct sm1_instruction instr = struct sm1_instruction sm1_instr =
{ {
.opcode = D3DSIO_TEXKILL, .opcode = D3DSIO_TEXKILL,
@ -2263,7 +2263,7 @@ static void write_sm1_jump(struct hlsl_ctx *ctx, struct vkd3d_bytecode_buffer *b
.has_dst = 1, .has_dst = 1,
}; };
write_sm1_instruction(ctx, buffer, &instr); write_sm1_instruction(ctx, buffer, &sm1_instr);
break; break;
} }