From 0a6bcf5da78863cc6402756a429b21b623400790 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Wed, 4 Sep 2024 12:04:25 +0200 Subject: [PATCH] vkd3d-shader/tpf: Fix a typo when adding the SFI0 section. Signed-off-by: Nikolay Sivov --- libs/vkd3d-shader/tpf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/vkd3d-shader/tpf.c b/libs/vkd3d-shader/tpf.c index 102ad36c..c6108641 100644 --- a/libs/vkd3d-shader/tpf.c +++ b/libs/vkd3d-shader/tpf.c @@ -6110,7 +6110,7 @@ static void write_sm4_sfi0(struct hlsl_ctx *ctx, struct dxbc_writer *dxbc) /* FIXME: We also emit code that should require UAVS_AT_EVERY_STAGE, * STENCIL_REF, and TYPED_UAV_LOAD_ADDITIONAL_FORMATS. */ - if (flags) + if (*flags) dxbc_writer_add_section(dxbc, TAG_SFI0, flags, sizeof(*flags)); else vkd3d_free(flags);