Skip to content

Commit

Permalink
Merge pull request #564 from archmoj/fix-es5
Browse files Browse the repository at this point in the history
One more fix to continue with es5
  • Loading branch information
rreusser authored May 27, 2020
2 parents 8197453 + 46bd7e7 commit 89bc99a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/shader.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ module.exports = function wrapShaderState (gl, stringStore, stats, config) {
gl.attachShader(program, fragShader)
gl.attachShader(program, vertShader)
if (attributeLocations) {
for (let i = 0; i < attributeLocations.length; ++i) {
for (i = 0; i < attributeLocations.length; ++i) {
var binding = attributeLocations[i]
gl.bindAttribLocation(program, binding[0], binding[1])
}
Expand Down

0 comments on commit 89bc99a

Please sign in to comment.