Fix type conversions to type T

This commit is contained in:
Patrik Huber 2016-08-21 20:24:25 +01:00
parent bf88ae130d
commit b7c2615e2a
2 changed files with 2 additions and 2 deletions

View File

@ -190,7 +190,7 @@ namespace glm
T bottom, T top
)
{
tmat4x4<T, defaultp> Result(1);
tmat4x4<T, defaultp> Result(T(1));
Result[0][0] = static_cast<T>(2) / (right - left);
Result[1][1] = static_cast<T>(2) / (top - bottom);
Result[2][2] = - static_cast<T>(1);

View File

@ -8,7 +8,7 @@ namespace glm
tvec3<T, P> const & v)
{
return translate(
tmat4x4<T, P>(1.0f), v);
tmat4x4<T, P>(T(1)), v);
}
template <typename T, precision P>