Skip to content

Commit

Permalink
Fixed some typos in material.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Garima3110 committed Jan 13, 2024
1 parent c321dc7 commit db4e344
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/webgl/material.js
Original file line number Diff line number Diff line change
Expand Up @@ -1226,7 +1226,7 @@ p5.RendererGL.prototype._applyColorBlend = function (colors) {
* @return {Number[]} Normalized numbers array
*/
p5.RendererGL.prototype._applyBlendMode = function () {
if (this.cachedBlendMode === this.curBlendMode) {
if (this._cachedBlendMode === this.curBlendMode) {
return;
}
const gl = this.GL;
Expand Down Expand Up @@ -1301,7 +1301,7 @@ p5.RendererGL.prototype._applyBlendMode = function () {
break;
}
if (!this._isErasing) {
this.cachedBlendMode = this.curBlendMode;
this._cachedBlendMode = this.curBlendMode;
}
};

Expand Down

0 comments on commit db4e344

Please sign in to comment.