Fixed use of wrong variable in setting preshader temp register counts.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 25 Oct 2011 02:24:45 -0400
changeset 1062 ea5c89942bd3
parent 1061 dbf2735676ae
child 1063 b10281d6eb45
Fixed use of wrong variable in setting preshader temp register counts.
mojoshader.c
--- a/mojoshader.c	Mon Oct 24 15:03:43 2011 -0400
+++ b/mojoshader.c	Tue Oct 25 02:24:45 2011 -0400
@@ -7451,8 +7451,8 @@
                 case 7:
                 {
                     operand->type = MOJOSHADER_PRESHADEROPERAND_TEMP;
-                    if (operand->index >= preshader->temp_count)
-                        preshader->temp_count = operand->index + 1;
+                    if (item >= preshader->temp_count)
+                        preshader->temp_count = item + 1;
                     break;
                 } // case
             } // switch