We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5611806 commit f63c49dCopy full SHA for f63c49d
cocos2d/shaders/CCGLProgram.js
@@ -63,7 +63,8 @@ cc.GLProgram = cc.Class.extend(/** @lends cc.GLProgram# */{
63
updated = true;
64
} else {
65
for (var i = 0; i < args.length; i += 1) {
66
- if (args[i] !== element[i]) {
+ // Array and Typed Array inner values could be changed, so we must update them
67
+ if (args[i] !== element[i] || typeof args[i] === 'object') {
68
element[i] = args[i];
69
70
}
0 commit comments