From 18f9dc2bd9cf40449a47159e8aa6a231ff4e48a9 Mon Sep 17 00:00:00 2001 From: Robert Konrad Date: Tue, 9 Jul 2024 16:25:32 +0200 Subject: [PATCH] Fix OpCapability in SPIR-V fragment shaders --- Sources/backends/spirv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/backends/spirv.c b/Sources/backends/spirv.c index 100fcb9..0289a4d 100644 --- a/Sources/backends/spirv.c +++ b/Sources/backends/spirv.c @@ -961,7 +961,7 @@ static void spirv_export_fragment(char *directory, function *main) { debug_context context = {0}; check(pixel_input != NO_TYPE, context, "fragment input missing"); - write_capabilities(&instructions); + write_capabilities(&decorations); write_op_ext_inst_import(&decorations, "GLSL.std.450"); write_op_memory_model(&decorations, ADDRESSING_MODEL_LOGICAL, MEMORY_MODEL_GLSL450); uint32_t entry_point = allocate_index();