Skip to content
2 changes: 2 additions & 0 deletions src/webgl/3d_primitives.js
Original file line number Diff line number Diff line change
Expand Up @@ -3434,12 +3434,14 @@ p5.RendererGL.prototype.image = function(
v1 = (sy + sHeight) / img.height;
}

this._drawingImage = true;
this.beginShape();
this.vertex(dx, dy, 0, u0, v0);
this.vertex(dx + dWidth, dy, 0, u1, v0);
this.vertex(dx + dWidth, dy + dHeight, 0, u1, v1);
this.vertex(dx, dy + dHeight, 0, u0, v1);
this.endShape(constants.CLOSE);
this._drawingImage = false;

this._pInst.pop();

Expand Down
Loading