From c895f63a1cbe8da014bd3645fcbd8962dc99045a Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Mon, 2 Jun 2025 00:16:21 +0200 Subject: [PATCH] vkd3d-shader/fx: Fix a crash in fx -> d3d-asm when named values are not defined. --- libs/vkd3d-shader/fx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/vkd3d-shader/fx.c b/libs/vkd3d-shader/fx.c index e4739aab8..dfb742475 100644 --- a/libs/vkd3d-shader/fx.c +++ b/libs/vkd3d-shader/fx.c @@ -3962,7 +3962,7 @@ static void fx_parse_fx_2_assignment(struct fx_parser *parser, const struct fx_a } vkd3d_string_buffer_printf(&parser->buffer, " = "); - if (state && state->type == FX_UINT) + if (state && state->type == FX_UINT && state->values) { const struct rhs_named_value *ptr = state->values; uint32_t value;