mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d-shader/hlsl: Do not try to dereference the else_instrs list pointer if there is no else block.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2ebfa91062
commit
6f85aad54b
@ -2694,7 +2694,8 @@ selection_statement:
|
||||
if (!(instr = hlsl_new_if(ctx, condition, @1)))
|
||||
YYABORT;
|
||||
list_move_tail(&instr->then_instrs, $5.then_instrs);
|
||||
list_move_tail(&instr->else_instrs, $5.else_instrs);
|
||||
if ($5.else_instrs)
|
||||
list_move_tail(&instr->else_instrs, $5.else_instrs);
|
||||
vkd3d_free($5.then_instrs);
|
||||
vkd3d_free($5.else_instrs);
|
||||
if (condition->data_type->dimx > 1 || condition->data_type->dimy > 1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user