mirror of
https://github.com/g-truc/glm.git
synced 2024-11-10 12:41:54 +00:00
Merge pull request #568 from patrikhuber/fix-missing-cast-to-T
Fixed missing conversion to T #568
This commit is contained in:
commit
3db25febee
@ -168,7 +168,7 @@ namespace glm
|
|||||||
T bottom, T top
|
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[0][0] = static_cast<T>(2) / (right - left);
|
||||||
Result[1][1] = static_cast<T>(2) / (top - bottom);
|
Result[1][1] = static_cast<T>(2) / (top - bottom);
|
||||||
Result[2][2] = - static_cast<T>(1);
|
Result[2][2] = - static_cast<T>(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user