Skip to content

Commit

Permalink
Patched to avoid compiler warning.
Browse files Browse the repository at this point in the history
--HG--
branch : trunk
  • Loading branch information
icculus committed May 6, 2008
1 parent 76478ec commit 60316f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mojoshader.c
Expand Up @@ -2019,7 +2019,7 @@ static void emit_GLSL_end(Context *ctx)

static void emit_GLSL_finalize(Context *ctx)
{
const RegisterList *reg = NULL;
const RegisterList *reg;

// throw some blank lines around to make source more readable.
push_output(ctx, &ctx->globals);
Expand All @@ -2029,16 +2029,16 @@ 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)
{
#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));
} // if
#endif
} // if

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

0 comments on commit 60316f3

Please sign in to comment.