Fixed modf

This commit is contained in:
Christophe Riccio
2011-11-14 11:55:03 +00:00
parent 4010b8d234
commit 7f153a2b62
4 changed files with 9 additions and 22 deletions

View File

@@ -217,9 +217,7 @@ namespace detail
{
GLM_STATIC_ASSERT(detail::type<genType>::is_float, "'modf' only accept floating-point inputs");
i = glm::floor(x);
return x - i;
return std::modf(x, &i);
}
template <typename valType>