Fixed source argument output in GLSL profile. trunk
authorRyan C. Gordon <icculus@icculus.org>
Tue, 22 Apr 2008 05:17:08 -0400
branchtrunk
changeset 183 2aacea2477f6
parent 182 09e287c6a111
child 184 5d196ad56b25
Fixed source argument output in GLSL profile. Before it might do something like "abs(r0).xyz" when it probably should do "abs(r0.xyz)" instead.
mojoshader.c
--- a/mojoshader.c	Tue Apr 22 05:14:38 2008 -0400
+++ b/mojoshader.c	Tue Apr 22 05:17:08 2008 -0400
@@ -1826,7 +1826,7 @@
 
     char *retval = get_scratch_buffer(ctx);
     snprintf(retval, SCRATCH_BUFFER_SIZE, "%s%s%s%s%s",
-             premod_str, regtype_str, regnum_str, postmod_str, swiz_str);
+             premod_str, regtype_str, regnum_str, swiz_str, postmod_str);
     // !!! FIXME: make sure the scratch buffer was large enough.
     return retval;
 } // make_GLSL_srcarg_string