Skip to content

Commit 9cd63b6

Browse files
authored
Merge pull request #954 from Rishab87/unexpected-y-axis
Fixed unexpected Y-axis translation when using ```ortho()``` and ```resetMatrix()```
2 parents 6ccf5b9 + bebf792 commit 9cd63b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/processing/opengl/PGraphicsOpenGL.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -4481,7 +4481,7 @@ public void ortho(float left, float right,
44814481

44824482
// The minus sign is needed to invert the Y axis.
44834483
projection.set(x, 0, 0, tx,
4484-
0, -y, 0, ty,
4484+
0, -y, 0, -ty,
44854485
0, 0, z, tz,
44864486
0, 0, 0, 1);
44874487

0 commit comments

Comments
 (0)