diff --git a/src/webgl/3d_primitives.js b/src/webgl/3d_primitives.js index 94e4dfdf2f..cdb525ab43 100644 --- a/src/webgl/3d_primitives.js +++ b/src/webgl/3d_primitives.js @@ -1994,6 +1994,7 @@ p5.RendererGL.prototype.image = function( this._pInst.push(); this._pInst.noLights(); + this._pInst.noStroke(); this._pInst.texture(img); this._pInst.textureMode(constants.NORMAL); diff --git a/src/webgl/p5.RendererGL.Immediate.js b/src/webgl/p5.RendererGL.Immediate.js index f83e295e0a..54cea58720 100644 --- a/src/webgl/p5.RendererGL.Immediate.js +++ b/src/webgl/p5.RendererGL.Immediate.js @@ -226,7 +226,7 @@ p5.RendererGL.prototype.endShape = function( p5.RendererGL.prototype._processVertices = function(mode) { if (this.immediateMode.geometry.vertices.length === 0) return; - const calculateStroke = this._doStroke && this.drawMode !== constants.TEXTURE; + const calculateStroke = this._doStroke; const shouldClose = mode === constants.CLOSE; if (calculateStroke) { this.immediateMode.geometry.edges = this._calculateEdges(