[svn] Fixed missing regnum output in D3D profile. trunk
authoricculus
Sat, 22 Mar 2008 00:17:30 -0400
branchtrunk
changeset 38 506f3ba0957a
parent 37 63b5ba0bcda0
child 39 4057e8dc3ad0
[svn] Fixed missing regnum output in D3D profile.
mojoshader.c
--- a/mojoshader.c	Sat Mar 22 00:04:32 2008 -0400
+++ b/mojoshader.c	Sat Mar 22 00:17:30 2008 -0400
@@ -673,8 +673,8 @@
     assert(i < sizeof (swizzle_str));
 
     char *retval = get_scratch_buffer(ctx);
-    snprintf(retval, SCRATCH_BUFFER_SIZE, "%s%s%s%s",
-             premod_str, regtype_str, postmod_str, swizzle_str);
+    snprintf(retval, SCRATCH_BUFFER_SIZE, "%s%s%s%s%s",
+             premod_str, regtype_str, regnum_str, postmod_str, swizzle_str);
     return retval;
 } // make_D3D_sourcearg_string