profiles/mojoshader_profile_spirv.c
changeset 1228 22aa1f7914d3
parent 1227 b7a3f02389b6
child 1234 608cef8fa24d
--- a/profiles/mojoshader_profile_spirv.c	Thu Jan 09 23:22:02 2020 -0500
+++ b/profiles/mojoshader_profile_spirv.c	Fri Jan 10 05:55:05 2020 +0100
@@ -2208,7 +2208,7 @@
         switch (regtype)
         {
             case REG_TYPE_COLOROUT:
-                spv_link_ps_attributes(ctx, r->spirv.iddecl, regtype, usage, index);
+                spv_link_ps_attributes(ctx, r->spirv.iddecl, regtype, usage, regnum);
                 push_output(ctx, &ctx->mainline_intro);
                 tid = spv_get_type(ctx, STI_PTR_VEC4_O);
                 spv_emit(ctx, 4, SpvOpVariable, tid, r->spirv.iddecl, SpvStorageClassOutput);