Skip to content

Commit

Permalink
Bugfix in UniformVariable.setValue()
Browse files Browse the repository at this point in the history
  • Loading branch information
alemart committed Jun 15, 2024
1 parent b8dcccc commit 6c8d017
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gpu/speedy-program.js
Original file line number Diff line number Diff line change
Expand Up @@ -640,8 +640,9 @@ UniformVariable.prototype.setValue = function(gl, value, texNo = -1)

texNo++;
}
else if(value === this._value) {
else if(value === this._value && typeof value !== 'object') {
// do not update the uniform if it hasn't changed
// note that value may be an array whose entries may have been updated
void(0);
}
else if(typeof value === 'number' || typeof value === 'boolean') {
Expand Down

0 comments on commit 6c8d017

Please sign in to comment.