Skip to content

Commit

Permalink
Update p5.RendererGL.Retained.js
Browse files Browse the repository at this point in the history
  • Loading branch information
deveshidwivedi authored Feb 2, 2024
1 parent f851186 commit 3fd2f4c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/webgl/p5.RendererGL.Retained.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3fd2f4c

Please sign in to comment.