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