Merge pull request #7919 from zzmp/fix/osx-warnings

Fix OSX warnings
This commit is contained in:
Clément Brisset 2016-05-19 11:11:30 -07:00
commit cddf587d6b

View file

@ -435,8 +435,8 @@ void generateBasisVectors(const glm::vec3& primaryAxis, const glm::vec3& seconda
#ifndef NDEBUG
const float MIN_LENGTH_SQUARED = 1.0e-6f;
#endif
assert(fabsf(glm::length2(primaryAxis) > MIN_LENGTH_SQUARED));
assert(fabsf(glm::length2(secondaryAxis) > MIN_LENGTH_SQUARED));
assert(glm::length2(primaryAxis) > MIN_LENGTH_SQUARED);
assert(glm::length2(secondaryAxis) > MIN_LENGTH_SQUARED);
uAxisOut = glm::normalize(primaryAxis);
glm::vec3 normSecondary = glm::normalize(secondaryAxis);