Flag registers replicated for matrix as used. trunk
authorRyan C. Gordon <icculus@icculus.org>
Fri, 04 Apr 2008 08:39:33 -0400
branchtrunk
changeset 88 7c16309ae3b0
parent 87 8b5845aac521
child 89 c7f451522522
Flag registers replicated for matrix as used. This lets GLSL profile know that it needs to define variables for each row of the matrix, not just the first one.
mojoshader.c
--- a/mojoshader.c	Fri Apr 04 08:38:04 2008 -0400
+++ b/mojoshader.c	Fri Apr 04 08:39:33 2008 -0400
@@ -2829,6 +2829,7 @@
     {
         memcpy(dst, src, sizeof (SourceArgInfo));
         dst->regnum += (i + 1);
+        set_used_register(ctx, dst->regtype, dst->regnum);
     } // for
 } // sourcearg_matrix_replicate