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:
Is this a way to deal with a warning?
Removing these has to do something with textures?
Post a Comment