From 99143087266c247805e490bc02cee15fbcf47952 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Sat, 15 Nov 2014 18:45:13 +0100 Subject: [PATCH] Clean up --- glm/gtc/matrix_transform.inl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/glm/gtc/matrix_transform.inl b/glm/gtc/matrix_transform.inl index 84444455..4c8ac722 100644 --- a/glm/gtc/matrix_transform.inl +++ b/glm/gtc/matrix_transform.inl @@ -216,8 +216,7 @@ namespace glm assert(aspect != static_cast(0)); assert(zFar != zNear); - T const rad = fovy; - T const tanHalfFovy = tan(rad / static_cast(2)); + T const tanHalfFovy = tan(fovy / static_cast(2)); tmat4x4 Result(static_cast(0)); Result[0][0] = static_cast(1) / (aspect * tanHalfFovy);