opengl - glBindAttribLocation index 0 -



opengl - glBindAttribLocation index 0 -

when seek bind attribute index of 0, shader programme fails @ linking , info infolog gives is:

vertex shader(s) failed link, fragment shader(s) linked.

according the opengl docs

this command makes possible vertex shaders utilize descriptive names attribute variables rather generic variables numbered 0 gl_max_vertex_attribs -1.

so binding attribute index 0 should work. though not important, curious why cannot bind attribute index 0. suggestions welcome.

quoting op commentary, because saved me:

i found problem(this causing other problems): in vertex shader had switched using gl_vertex using own attribute, "vertex", @ 1 place in shader had forgotten alter variable name, , since gl_vertex uses 0 index...

opengl

Comments

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -