From 4c76f8b3a5076bcf0d412826b0f9af59b40f909e Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 25 Apr 2008 04:04:00 -0400 Subject: [PATCH] Don't need my #define hack for attributes in GLSL profile anymore. --HG-- branch : trunk --- mojoshader.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/mojoshader.c b/mojoshader.c index 6ca5ce90..2b63303a 100644 --- a/mojoshader.c +++ b/mojoshader.c @@ -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