summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeffery Myers <[email protected]>2021-01-07 14:13:44 -0800
committerGitHub <[email protected]>2021-01-07 23:13:44 +0100
commitb76dc06297289245b477a2d98e44271149524cdd (patch)
treea7d1154779f9a02cb77688b2c8f1f43897783982
parent33ed14230608667c18b7d28d2f03722354e1c1a2 (diff)
downloadraylib-b76dc06297289245b477a2d98e44271149524cdd.tar.gz
raylib-b76dc06297289245b477a2d98e44271149524cdd.zip
It's top-bottom not bottom-top in GL space. (#1517)
-rw-r--r--src/rlgl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index 572e86c4..8d0dc373 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -1100,7 +1100,7 @@ void rlFrustum(double left, double right, double bottom, double top, double znea
// Multiply the current matrix by an orthographic matrix generated by parameters
void rlOrtho(double left, double right, double bottom, double top, double znear, double zfar)
{
- if (((right - left) > 0) && ((bottom - top) > 0))
+ if (((right - left) > 0) && ((top - bottom) > 0))
{
Matrix matOrtho = MatrixOrtho(left, right, bottom, top, znear, zfar);
*RLGL.State.currentMatrix = MatrixMultiply(*RLGL.State.currentMatrix, matOrtho);