From b7c2615e2a16b3a102c1f0e1691f17d361d80617 Mon Sep 17 00:00:00 2001 From: Patrik Huber Date: Sun, 21 Aug 2016 20:24:25 +0100 Subject: [PATCH] Fix type conversions to type T --- glm/gtc/matrix_transform.inl | 2 +- glm/gtx/transform.inl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/glm/gtc/matrix_transform.inl b/glm/gtc/matrix_transform.inl index 9801a2e1..377fe952 100644 --- a/glm/gtc/matrix_transform.inl +++ b/glm/gtc/matrix_transform.inl @@ -190,7 +190,7 @@ namespace glm T bottom, T top ) { - tmat4x4 Result(1); + tmat4x4 Result(T(1)); Result[0][0] = static_cast(2) / (right - left); Result[1][1] = static_cast(2) / (top - bottom); Result[2][2] = - static_cast(1); diff --git a/glm/gtx/transform.inl b/glm/gtx/transform.inl index fc228ce8..debcb06e 100644 --- a/glm/gtx/transform.inl +++ b/glm/gtx/transform.inl @@ -8,7 +8,7 @@ namespace glm tvec3 const & v) { return translate( - tmat4x4(1.0f), v); + tmat4x4(T(1)), v); } template