diff --git a/glm/core/func_common.inl b/glm/core/func_common.inl index 2fac53b7..4695bdff 100644 --- a/glm/core/func_common.inl +++ b/glm/core/func_common.inl @@ -225,7 +225,9 @@ namespace glm { GLM_STATIC_ASSERT(detail::type::is_float, "'round' only accept floating-point inputs"); - return genType(int(x + genType(0.5))); + if(x < 0) + return genType(int(x - genType(0.5))); + return genType(int(x + genType(0.5))); } template