mojoshader.c
branchtrunk
changeset 444 a243232171aa
parent 439 4713376cb94a
child 445 4bd3d8435e4d
--- a/mojoshader.c	Mon Aug 04 05:56:56 2008 -0400
+++ b/mojoshader.c	Mon Aug 18 11:14:23 2008 -0400
@@ -2269,29 +2269,10 @@
 
 static void emit_GLSL_finalize(Context *ctx)
 {
-    const RegisterList *reg;
-
     // throw some blank lines around to make source more readable.
     push_output(ctx, &ctx->globals);
     output_blank_line(ctx);
     pop_output(ctx);
-
-    push_output(ctx, &ctx->mainline_intro);
-    ctx->indent++;
-
-    // Make sure this is always set, moved from our generic attribute.
-    reg = declared_attribute(ctx, MOJOSHADER_USAGE_POSITION, 0);
-    if (reg != NULL)
-    {
-#if 0  // !!! FIXME: probably not necessary?
-        // !!! FIXME: only emit if shader didn't definitely set gl_Position.
-        output_line(ctx, "gl_Position = %s;",
-                            get_GLSL_varname(ctx, reg->regtype, reg->regnum));
-#endif
-    } // if
-
-    ctx->indent--;
-    pop_output(ctx);
 } // emit_GLSL_finalize
 
 static void emit_GLSL_global(Context *ctx, RegisterType regtype, int regnum)