Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't need my #define hack for attributes in GLSL profile anymore.
--HG--
branch : trunk
  • Loading branch information
icculus committed Apr 25, 2008
1 parent 65152f6 commit 4c76f8b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions mojoshader.c
Expand Up @@ -2097,11 +2097,7 @@ static void emit_GLSL_attribute(Context *ctx, RegisterType regtype, int regnum,

if (regtype == REG_TYPE_INPUT)
{
// The GL will bind to attr_position_0 or whatever, but we'll
// refer to it in the shader by the original D3D register name.
push_output(ctx, &ctx->globals);
output_line(ctx, "#define %s attr%s_%d", varname,
usagestrs[(int) usage], index);
output_line(ctx, "attribute vec4 %s;", varname);
pop_output(ctx);
} // if
Expand Down

0 comments on commit 4c76f8b

Please sign in to comment.