Skip to content

Commit

Permalink
Merge pull request #568 from patrikhuber/fix-missing-cast-to-T
Browse files Browse the repository at this point in the history
Fixed missing conversion to T #568
  • Loading branch information
Groovounet authored Nov 8, 2016
2 parents f4f1090 + e1e1dd1 commit 3db25fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glm/gtc/matrix_transform.inl
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ namespace glm
T bottom, T top
)
{
tmat4x4<T, defaultp> Result(1);
tmat4x4<T, defaultp> Result(static_cast<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);
Expand Down

0 comments on commit 3db25fe

Please sign in to comment.