mojoshader.c
branchtrunk
changeset 156 c2a933029495
parent 155 d078e6be5a39
child 157 b94a6f5031be
--- a/mojoshader.c	Sun Apr 20 02:39:48 2008 -0400
+++ b/mojoshader.c	Sun Apr 20 03:24:27 2008 -0400
@@ -1983,6 +1983,7 @@
             if (regtype == REG_TYPE_RASTOUT)
             {
                 regtype = REG_TYPE_OUTPUT;
+                index = regnum;
                 switch ((const RastOutType) regnum)
                 {
                     case RASTOUT_TYPE_POSITION:
@@ -2001,12 +2002,14 @@
             {
                 regtype = REG_TYPE_OUTPUT;
                 usage = MOJOSHADER_USAGE_COLOR;
+                index = regnum;
             } // else if
 
             else if (regtype == REG_TYPE_TEXCRDOUT)
             {
                 regtype = REG_TYPE_OUTPUT;
                 usage = MOJOSHADER_USAGE_TEXCOORD;
+                index = regnum;
             } // else if
         } // if
 
@@ -2032,7 +2035,6 @@
 
         else if (regtype == REG_TYPE_OUTPUT)
         {
-            const uint32 index = ctx->dwords[1];
             const char *arrayleft = "";
             const char *arrayright = "";