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);