Module: vkd3d Branch: master Commit: 5768c019c1b486d25c7eb17cc826bb3eaa0d8c22 URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/5768c019c1b486d25c7eb17cc826bb...
Author: Conor McCarthy cmccarthy@codeweavers.com Date: Thu Nov 9 14:07:03 2023 +1000
vkd3d-shader/ir: Check the handler before changing it to NOP in remove_dead_code().
---
libs/vkd3d-shader/ir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libs/vkd3d-shader/ir.c b/libs/vkd3d-shader/ir.c index abc8b1cd..72ba057d 100644 --- a/libs/vkd3d-shader/ir.c +++ b/libs/vkd3d-shader/ir.c @@ -1295,9 +1295,9 @@ static void remove_dead_code(struct vkd3d_shader_parser *parser) { if (depth > 0) { - vkd3d_shader_instruction_make_nop(ins); if (ins->handler_idx != VKD3DSIH_ELSE) --depth; + vkd3d_shader_instruction_make_nop(ins); } else {