summaryrefslogtreecommitdiff
path: root/core/math/projection.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-12-15 22:13:28 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-12-15 22:13:28 +0100
commit6889889894e7c42ff3cd79fcd13da149e80c93ec (patch)
treea51cdd5f4407838885fd04ec88483fd375c76a67 /core/math/projection.cpp
parent5dda8ec88d301948db5c81d47c17e78f2e1cab52 (diff)
parentcc245ff8a63efe00f29cefaea501b4192e6701df (diff)
Merge pull request #70112 from Lielay9/patch-1
Fix "p_zfar" to "p_znear" in Projection.create_orthogonal
Diffstat (limited to 'core/math/projection.cpp')
-rw-r--r--core/math/projection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/projection.cpp b/core/math/projection.cpp
index 9af388b081..c135e1946a 100644
--- a/core/math/projection.cpp
+++ b/core/math/projection.cpp
@@ -134,7 +134,7 @@ Projection Projection::create_for_hmd(int p_eye, real_t p_aspect, real_t p_intra
Projection Projection::create_orthogonal(real_t p_left, real_t p_right, real_t p_bottom, real_t p_top, real_t p_znear, real_t p_zfar) {
Projection proj;
- proj.set_orthogonal(p_left, p_right, p_bottom, p_top, p_zfar, p_zfar);
+ proj.set_orthogonal(p_left, p_right, p_bottom, p_top, p_znear, p_zfar);
return proj;
}