From 751391c8ff7db5fdfe0c7911379663402ddf321e Mon Sep 17 00:00:00 2001 From: Recep Aslantas Date: Sun, 9 Oct 2016 14:08:08 +0300 Subject: [PATCH] fix ortho --- include/cglm-cam.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/cglm-cam.h b/include/cglm-cam.h index 30159e6..34943e6 100644 --- a/include/cglm-cam.h +++ b/include/cglm-cam.h @@ -57,6 +57,7 @@ glm_ortho(float left, dest[3][0] =-(right + left) / (right - left); dest[3][1] =-(top + bottom) / (top - bottom); dest[3][2] =-(far + near) / (far - near); + dest[3][3] = 1.0f; } CGLM_INLINE