diff --git a/src/webgl/p5.RendererGL.Immediate.js b/src/webgl/p5.RendererGL.Immediate.js index 5a2beaf990..2409dae3d6 100644 --- a/src/webgl/p5.RendererGL.Immediate.js +++ b/src/webgl/p5.RendererGL.Immediate.js @@ -134,6 +134,12 @@ p5.RendererGL.prototype.vertex = function(x, y) { u /= this._tex.width; v /= this._tex.height; } + } else if ( + this.userFillShader !== undefined || + this.userStrokeShader !== undefined || + this.userPointShader !== undefined + ) { + // Do nothing if user-defined shaders are present } else if ( this._tex === null && arguments.length >= 4