mojoshader_opengl.c
branchtrunk
changeset 321 d7fb4ccecf0b
parent 313 f5aa15de1690
child 323 b60c88ec8182
--- a/mojoshader_opengl.c	Mon May 12 02:58:22 2008 -0400
+++ b/mojoshader_opengl.c	Tue May 13 04:29:56 2008 -0400
@@ -605,7 +605,7 @@
 
     for (i = 0; i < pd->attribute_count; i++)
     {
-        const GLint loc = ctx->glGetAttribLocation(program->handle, a->name);
+        const GLint loc = ctx->glGetAttribLocation(program->handle, a[i].name);
         if (loc != -1)  // maybe the Attribute was optimized out?
         {
             AttributeMap *map = &program->attributes[program->attribute_count];