bugfix in handling bindings in guMakeProgram()
This commit is contained in:
parent
5389b9ea0e
commit
088c0c558a
@ -309,7 +309,7 @@ GLuint guMakeProgram(GLuint v_shader_id, GLuint f_shader_id,
|
|||||||
if (bindings != NULL)
|
if (bindings != NULL)
|
||||||
{
|
{
|
||||||
int i;
|
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);
|
glBindAttribLocation(program, bindings[i].index, bindings[i].name);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user