bugfix in handling bindings in guMakeProgram()

This commit is contained in:
Josh Holtrop 2011-05-13 11:34:54 -04:00
parent 5389b9ea0e
commit 088c0c558a

View File

@ -309,7 +309,7 @@ GLuint guMakeProgram(GLuint v_shader_id, GLuint f_shader_id,
if (bindings != NULL)
{
int i;
for (i = 0; bindings[i].index > 0 && bindings[i].name != NULL; i++)
for (i = 0; bindings[i].name != NULL; i++)
{
glBindAttribLocation(program, bindings[i].index, bindings[i].name);
}