Fixed glm::step that didn't work with scalars #684

This commit is contained in:
Christophe Riccio
2017-10-22 16:58:09 +02:00
parent 5dbb4470e7
commit fcbedf5058
2 changed files with 15 additions and 1 deletions

View File

@@ -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>