mojoshader_assembler.c
changeset 491 bcc3c215807a
parent 490 14b6586d9c43
child 492 29bfa3448549
--- a/mojoshader_assembler.c	Wed Dec 10 05:04:52 2008 -0500
+++ b/mojoshader_assembler.c	Wed Dec 10 05:05:55 2008 -0500
@@ -669,7 +669,7 @@
         info->writemask0 = info->writemask1 = info->writemask2 = info->writemask3 = 1;
         pushback(ctx);  // no explicit writemask; do full mask.
     } // if
-    else if (scalar_register(info->regtype, info->regnum))
+    else if (scalar_register(ctx->shader_type, info->regtype, info->regnum))
         return fail(ctx, "Writemask specified for scalar register");
     else if (nexttoken(ctx, 0, 1, 0, 0) == FAIL)
         return FAIL;
@@ -830,7 +830,7 @@
         swizzle = 0xE4;  // 0xE4 == 11100100 ... 0 1 2 3. No swizzle.
         pushback(ctx);  // no explicit writemask; do full mask.
     } // if
-    else if (scalar_register(regtype, regnum))
+    else if (scalar_register(ctx->shader_type, regtype, regnum))
         return fail(ctx, "Swizzle specified for scalar register");
     else if (nexttoken(ctx, 0, 1, 0, 0) == FAIL)
         return FAIL;