From db4e344a1745b0ed6bff1d6dc4d86892aec1fdd4 Mon Sep 17 00:00:00 2001 From: Garima Date: Sat, 13 Jan 2024 23:27:24 +0530 Subject: [PATCH] Fixed some typos in material.js --- src/webgl/material.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webgl/material.js b/src/webgl/material.js index b797cd1f4e..ba6b0a13e4 100644 --- a/src/webgl/material.js +++ b/src/webgl/material.js @@ -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; @@ -1301,7 +1301,7 @@ p5.RendererGL.prototype._applyBlendMode = function () { break; } if (!this._isErasing) { - this.cachedBlendMode = this.curBlendMode; + this._cachedBlendMode = this.curBlendMode; } };