Fixed cut-and-paste bug. trunk
authorRyan C. Gordon <icculus@icculus.org>
Thu, 17 Apr 2008 23:21:05 -0400
branchtrunk
changeset 140 c6ffcf2d877a
parent 139 a7695f68cbff
child 141 997857107c39
Fixed cut-and-paste bug.
mojoshader.c
--- a/mojoshader.c	Thu Apr 17 22:19:24 2008 -0400
+++ b/mojoshader.c	Thu Apr 17 23:21:05 2008 -0400
@@ -2632,8 +2632,8 @@
 {
     const DestArgInfo *dst = &ctx->dest_args[0];
     const char *src0 = get_GLSL_sourcearg_varname(ctx, 0);
-    const char *src1 = get_GLSL_sourcearg_varname(ctx, 0);
-    const char *src2 = get_GLSL_sourcearg_varname(ctx, 0);
+    const char *src1 = get_GLSL_sourcearg_varname(ctx, 1);
+    const char *src2 = get_GLSL_sourcearg_varname(ctx, 2);
 
     // !!! FIXME: for replicate swizzles, don't redo compares...