Skip to content
Permalink
Browse files
Minor DCL output fix in GLSL profile.
--HG--
branch : trunk
  • Loading branch information
icculus committed Apr 5, 2008
1 parent 473e42c commit 901939106ef018b87a1a0e3e3db0081d2c25162a
Showing with 10 additions and 0 deletions.
  1. +10 −0 mojoshader.c
@@ -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];
@@ -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

0 comments on commit 9019391

Please sign in to comment.