mojoshader_assembler.c
changeset 1132 b784577caefa
parent 1130 80fc68215dec
child 1156 6e760a19f456
--- a/mojoshader_assembler.c	Fri May 17 15:00:34 2013 -0400
+++ b/mojoshader_assembler.c	Fri May 17 15:01:09 2013 -0400
@@ -962,6 +962,8 @@
         fail(ctx, "Invalid usage");
     else if (samplerreg)
         ctx->tokenbuf[0] = (usage << 27) | 0x80000000;
+    else if (shader_is_pixel(ctx))  // all other pixel shader types are zero'd.
+        ctx->tokenbuf[0] = 0x80000000;
     else
         ctx->tokenbuf[0] = usage | (index << 16) | 0x80000000;