Changed a "vec" to a "vec4". trunk
authorRyan C. Gordon <icculus@icculus.org>
Wed, 16 Apr 2008 01:23:41 -0400
branchtrunk
changeset 127 08ed4307aeea
parent 126 556779e8a6d7
child 128 d87a5548ee21
Changed a "vec" to a "vec4".
mojoshader.c
--- a/mojoshader.c	Sat Apr 12 16:51:23 2008 -0400
+++ b/mojoshader.c	Wed Apr 16 01:23:41 2008 -0400
@@ -1977,7 +1977,7 @@
             push_output(ctx, &ctx->globals);
             // no mapping to built-in var? Just make it a regular global, pray.
             if (usage_str == NULL)
-                output_line(ctx, "vec %s;", varname);
+                output_line(ctx, "vec4 %s;", varname);
             else
             {
                 output_line(ctx, "#define %s %s%s%s%s", varname, usage_str,