From 848800b5c47b9854afd8cb7b9973e25bf0710d2c Mon Sep 17 00:00:00 2001 From: Groove Date: Sat, 21 Jul 2018 17:52:40 +0200 Subject: [PATCH] Fixed glm::ortho #790 --- glm/gtc/matrix_transform.inl | 1 + readme.md | 1 + 2 files changed, 2 insertions(+) diff --git a/glm/gtc/matrix_transform.inl b/glm/gtc/matrix_transform.inl index 12623d79..5c3c20a4 100644 --- a/glm/gtc/matrix_transform.inl +++ b/glm/gtc/matrix_transform.inl @@ -102,6 +102,7 @@ namespace glm mat<4, 4, T, defaultp> Result(static_cast(1)); Result[0][0] = static_cast(2) / (right - left); Result[1][1] = static_cast(2) / (top - bottom); + Result[2][2] = - static_cast(1); Result[3][0] = - (right + left) / (right - left); Result[3][1] = - (top + bottom) / (top - bottom); return Result; diff --git a/readme.md b/readme.md index c8eb6623..e38f2a9f 100644 --- a/readme.md +++ b/readme.md @@ -66,6 +66,7 @@ glm::mat4 camera(float Translate, glm::vec2 const& Rotate) - Fixed build problems due to printf and std::clock_t #778 - Fixed int mod - Anonymous unions require C++ language extensions +- Fixed ortho #790 ### [GLM 0.9.9.0](https://github.com/g-truc/glm/releases/tag/0.9.9.0) - 2018-05-22 #### Features: