mirror of
https://github.com/g-truc/glm.git
synced 2025-04-21 12:39:37 +00:00
Fixed sign for unsigned types #271
This commit is contained in:
parent
38161f01f8
commit
582ea579a3
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ namespace detail
|
|||
{
|
||||
GLM_FUNC_QUALIFIER static vecType<T, P> call(vecType<T, P> const & x)
|
||||
{
|
||||
return glm::abs(x);
|
||||
return vecType<T, P>(glm::greaterThan(x , vecType<T, P>(0)));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue