diff options
author | chai <chaifix@163.com> | 2018-10-06 08:07:35 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-10-06 08:07:35 +0800 |
commit | 090b303a88b493eca0bde51b5a454043c893b0d8 (patch) | |
tree | cbc27aeac6d3e430556aa1ea8f80de2636104028 /src/libjin/Math/Matrix.cpp | |
parent | 789895b4b9f99668b8b772f271d07d1ce3115742 (diff) |
*update
Diffstat (limited to 'src/libjin/Math/Matrix.cpp')
-rw-r--r-- | src/libjin/Math/Matrix.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libjin/Math/Matrix.cpp b/src/libjin/Math/Matrix.cpp index a80f37a..a6e2491 100644 --- a/src/libjin/Math/Matrix.cpp +++ b/src/libjin/Math/Matrix.cpp @@ -26,10 +26,10 @@ namespace math void Matrix::setOrtho(float l, float r, float b, float t, float n, float f) { - float w = r - l; + setIdentity(); + float w = r - l; float h = t - b; float z = f - n; - setIdentity(); e[0] = 2 / w; e[5] = 2 / h; e[10] = -2 / z; |