From 9134b359c6828fa08cc2ec5e99eb5f4ae1357e34 Mon Sep 17 00:00:00 2001 From: codeanticode Date: Wed, 20 Jul 2011 05:46:50 +0000 Subject: [PATCH] Added propper Y-axis inversion in ortho() --- .../libraries/opengl/src/processing/opengl/PGraphicsOpenGL.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/libraries/opengl/src/processing/opengl/PGraphicsOpenGL.java b/java/libraries/opengl/src/processing/opengl/PGraphicsOpenGL.java index fe27cb192..1ed6201a8 100644 --- a/java/libraries/opengl/src/processing/opengl/PGraphicsOpenGL.java +++ b/java/libraries/opengl/src/processing/opengl/PGraphicsOpenGL.java @@ -4946,7 +4946,7 @@ return width * (1 + ox) / 2.0f; glprojection[3] = 0.0f; glprojection[4] = 0.0f; - glprojection[5] = y; + glprojection[5] = -y; // The minus here inverts the Y axis in order to use Processing's convention glprojection[6] = 0.0f; glprojection[7] = 0.0f;