Skip to content

Commit 0df9212

Browse files
committed
Fix erase and noErase in webgl
1 parent 8f3fea9 commit 0df9212

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webgl/p5.RendererGL.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1198,7 +1198,7 @@ p5.RendererGL = class RendererGL extends p5.Renderer {
11981198
// It's necessary to restore post-erase state. Needs rework
11991199
let temp = this.curBlendMode;
12001200
this.blendMode(this._cachedBlendMode);
1201-
this._cachedBlendMode = temp; // If we don't do this, appleBlendMode() returns null
1201+
this._cachedBlendMode = temp; // If we don't do this, applyBlendMode() returns null
12021202
this._isErasing = false;
12031203
this._applyBlendMode(); // This sets _cachedBlendMode back to the original blendmode
12041204
}

0 commit comments

Comments
 (0)