mirror of
https://github.com/g-truc/glm.git
synced 2024-11-16 14:54:35 +00:00
Fix type conversions to type T
This commit is contained in:
parent
bf88ae130d
commit
b7c2615e2a
@ -190,7 +190,7 @@ namespace glm
|
|||||||
T bottom, T top
|
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[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);
|
||||||
|
@ -8,7 +8,7 @@ namespace glm
|
|||||||
tvec3<T, P> const & v)
|
tvec3<T, P> const & v)
|
||||||
{
|
{
|
||||||
return translate(
|
return translate(
|
||||||
tmat4x4<T, P>(1.0f), v);
|
tmat4x4<T, P>(T(1)), v);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T, precision P>
|
template <typename T, precision P>
|
||||||
|
Loading…
Reference in New Issue
Block a user