Fixed missing conversion to T

This commit is contained in:
Patrik Huber 2016-11-07 21:41:43 +00:00 committed by Christophe Riccio
parent 03672e9428
commit 282473be24

View File

@ -168,7 +168,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);