Fixed glm::step that didn't work with scalars #684
This commit is contained in:
@@ -582,7 +582,7 @@ namespace detail
|
||||
template<typename genType>
|
||||
GLM_FUNC_QUALIFIER genType step(genType edge, genType x)
|
||||
{
|
||||
return mix(static_cast<genType>(1), static_cast<genType>(0), glm::lessThan(x, edge));
|
||||
return mix(static_cast<genType>(1), static_cast<genType>(0), x < edge);
|
||||
}
|
||||
|
||||
template<length_t L, typename T, qualifier Q>
|
||||
|
||||
Reference in New Issue
Block a user