Skip to content

Commit 6a1c8bc

Browse files
committed
fixes scaling inversion
1 parent 5f0bcdc commit 6a1c8bc

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

core/src/processing/opengl/PGraphicsOpenGL.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3873,7 +3873,7 @@ static protected void invScale(PMatrix3D matrix, float x, float y, float z) {
38733873

38743874

38753875
static protected void invScale(PMatrix2D matrix, float x, float y) {
3876-
matrix.preApply(1/x, 0, 0, 1/y, 0, 0);
3876+
matrix.preApply(1/x, 0, 0, 0, 1/y, 0);
38773877
}
38783878

38793879

core/src/processing/opengl/PShapeOpenGL.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1418,7 +1418,6 @@ protected void transform(int type, float... args) {
14181418
} else {
14191419
transform.scale(args[0], args[1]);
14201420
PGraphicsOpenGL.invScale((PMatrix2D)transformInv, args[0], args[1]);
1421-
tessellated = false; // Quick fix for https://github.com/processing/processing4/issues/217
14221421
}
14231422
break;
14241423
case MATRIX:

0 commit comments

Comments
 (0)