does glBindAttribLocation silently ignore names not found in a shader?

Posted by rwols on Game Development See other posts from Game Development or by rwols
Published on 2013-06-25T15:01:25Z Indexed on 2013/06/25 16:30 UTC
Read the original article Hit count: 159

Filed under:
|
|

Does glBindAttribLocation silently ignore names that are not found? For example, in a shader:

// Some vertex shader
in vec3 position;
in vec3 normal;
// ...

And in some set up code:

// While setting up shader
GLuint program = glCreateProgram();
glBindAttribLocation(program, 0, "position");
glBindAttribLocation(program, 1, "normal");
glBindAttribLocation(program, 2, "color"); // What about this one?
glLinkProgram(program);

© Game Development or respective owner

Related posts about opengl

Related posts about c