Skip to content

Commit

Permalink
Don't add that gl_Position assignment at the start.
Browse files Browse the repository at this point in the history
--HG--
branch : trunk
  • Loading branch information
icculus committed May 6, 2008
1 parent 3e0f4aa commit 76478ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mojoshader.c
Expand Up @@ -2029,6 +2029,7 @@ static void emit_GLSL_finalize(Context *ctx)
push_output(ctx, &ctx->mainline_intro);
ctx->indent++;

#if 0 // !!! FIXME: probably not necessary?
// Make sure this is always set, moved from our generic attribute.
reg = declared_attribute(ctx, MOJOSHADER_USAGE_POSITION, 0);
if (reg != NULL)
Expand All @@ -2037,6 +2038,7 @@ static void emit_GLSL_finalize(Context *ctx)
output_line(ctx, "gl_Position = %s;",
get_GLSL_varname(ctx, reg->regtype, reg->regnum));
} // if
#endif

ctx->indent--;
pop_output(ctx);
Expand Down

0 comments on commit 76478ec

Please sign in to comment.