Skip to content

Commit

Permalink
Minor DCL output fix in GLSL profile.
Browse files Browse the repository at this point in the history
--HG--
branch : trunk
  • Loading branch information
icculus committed Apr 5, 2008
1 parent 473e42c commit 9019391
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions mojoshader.c
Expand Up @@ -2099,7 +2099,12 @@ static void emit_GLSL_DCL(Context *ctx)
// point limitations there.

if (regtype == REG_TYPE_INPUT)
{
push_output(ctx, &ctx->globals);
output_line(ctx, "attribute vec4 %s;", varname);
pop_output(ctx);
} // if

else if (regtype == REG_TYPE_OUTPUT)
{
const uint32 index = ctx->dwords[1];
Expand Down Expand Up @@ -2147,6 +2152,11 @@ static void emit_GLSL_DCL(Context *ctx)
arrayleft, index_str, arrayright);
} // else
pop_output(ctx);
} // else if

else
{
fail(ctx, "unknown DCL register");
} // else
} // if

Expand Down

0 comments on commit 9019391

Please sign in to comment.