diff --git a/src/webgl/p5.RendererGL.Retained.js b/src/webgl/p5.RendererGL.Retained.js index c9302f83ac..bfeb562450 100644 --- a/src/webgl/p5.RendererGL.Retained.js +++ b/src/webgl/p5.RendererGL.Retained.js @@ -189,15 +189,16 @@ p5.RendererGL.prototype.drawBuffersScaled = function( scaleY, scaleZ ) { + let originalModelMatrix = this.uModelMatrix.copy(); try { this.uModelMatrix.scale(scaleX, scaleY, scaleZ); - this.uMVMatrix.scale(scaleX, scaleY, scaleZ); + this.drawBuffers(gId); } finally { - this.uModelMatrix = uModelMatrix; + + this.uModelMatrix = originalModelMatrix; } }; - p5.RendererGL.prototype._drawArrays = function(drawMode, gId) { this.GL.drawArrays( drawMode,