Skip to content

Commit

Permalink
Actually fix constant binding
Browse files Browse the repository at this point in the history
  • Loading branch information
rreusser committed Sep 12, 2019
1 parent f658e93 commit 801a31b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -2283,10 +2283,10 @@ module.exports = function reglCore (
scope(
'if(', BINDING, '.buffer){',
GL, '.disableVertexAttribArray(', LOCATION, ');',
BINDING, '.buffer=null;',
'}if(', CUTE_COMPONENTS.map(function (c, i) {
return BINDING + '.' + c + '!==' + CONST_COMPONENTS[i]
}).join('||'), '){',
BINDING, '.buffer=null;',
GL, '.vertexAttrib4f(', LOCATION, ',', CONST_COMPONENTS, ');',
CUTE_COMPONENTS.map(function (c, i) {
return BINDING + '.' + c + '=' + CONST_COMPONENTS[i] + ';'
Expand Down

0 comments on commit 801a31b

Please sign in to comment.