Monday, June 11, 2012

WebGL: INVALID_VALUE: enableVertexAttribArray: index out of range

Google Chrome Warning: WebGL: INVALID_VALUE: enableVertexAttribArray: index out of range I was not using the normals in my WebGL application, so I removed these lines and the warning went away:
shaderProgram.vertexNormalAttribute = gl.getAttribLocation(shaderProgram, "aVertexNormal"); gl.enableVertexAttribArray(shaderProgram.vertexNormalAttribute);

2 comments:

Unknown said...

Is this a way to deal with a warning?

Unknown said...

Removing these has to do something with textures?