Don't need my #define hack for attributes in GLSL profile anymore. trunk
authorRyan C. Gordon <icculus@icculus.org>
Fri, 25 Apr 2008 04:04:00 -0400
branchtrunk
changeset 191 8c38db3edb8d
parent 190 2a2fb0f656cf
child 192 e7c864575d1c
Don't need my #define hack for attributes in GLSL profile anymore.
mojoshader.c
--- a/mojoshader.c	Fri Apr 25 03:57:48 2008 -0400
+++ b/mojoshader.c	Fri Apr 25 04:04:00 2008 -0400
@@ -2097,11 +2097,7 @@
 
         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