From 090b303a88b493eca0bde51b5a454043c893b0d8 Mon Sep 17 00:00:00 2001 From: chai Date: Sat, 6 Oct 2018 08:07:35 +0800 Subject: *update --- src/libjin/math/matrix.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libjin/math/matrix.cpp') 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; -- cgit v1.1-26-g67d0