From 3651530ff09a2d9f7fe24f25815d24119cb2e9cc Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Sat, 21 Jun 2014 11:50:42 +0200 Subject: [PATCH] Fixed build --- glm/gtc/matrix_transform.hpp | 1 + glm/gtc/matrix_transform.inl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/glm/gtc/matrix_transform.hpp b/glm/gtc/matrix_transform.hpp index 1a9f0bac..6ea71aea 100644 --- a/glm/gtc/matrix_transform.hpp +++ b/glm/gtc/matrix_transform.hpp @@ -51,6 +51,7 @@ #include "../vec2.hpp" #include "../vec3.hpp" #include "../vec4.hpp" +#include "../gtc/constants.hpp" #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED)) # pragma message("GLM: GLM_GTC_matrix_transform extension included") diff --git a/glm/gtc/matrix_transform.inl b/glm/gtc/matrix_transform.inl index 03d201c6..31fa2cc3 100644 --- a/glm/gtc/matrix_transform.inl +++ b/glm/gtc/matrix_transform.inl @@ -267,7 +267,7 @@ namespace glm T h = glm::cos(static_cast(0.5) * rad) / glm::sin(static_cast(0.5) * rad); T w = h * height / width; ///todo max(width , Height) / min(width , Height)? - detail::tmat4x4 Result(static_cast(0)); + detail::tmat4x4 Result(static_cast(0)); Result[0][0] = w; Result[1][1] = h; Result[2][2] = - (zFar + zNear) / (zFar - zNear);