From 46c75137c73a3c3307e104564b74fb37935971f6 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Tue, 8 Jul 2025 19:20:27 +0200 Subject: [PATCH] vkd3d-shader/fx: Use the correct value range for bools in fx_4_0 state values. The earlier fix a06ecb686720901c89e551bfcc74078f970a62d3 is missing this. Signed-off-by: Nikolay Sivov --- 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 58f977a69..4224ad19d 100644 --- a/libs/vkd3d-shader/fx.c +++ b/libs/vkd3d-shader/fx.c @@ -2277,7 +2277,7 @@ static uint32_t write_fx_4_state_numeric_value(struct hlsl_ir_constant *value, s } put_u32_unaligned(buffer, type); - put_u32_unaligned(buffer, value->value.u[i].u); + put_u32_unaligned(buffer, get_fx_default_numeric_value(data_type, value->value.u[i].u)); } return offset;