Added propper Y-axis inversion in ortho()

This commit is contained in:
codeanticode
2011-07-20 05:46:50 +00:00
parent dc9171142c
commit 9134b359c6

View File

@@ -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;