make implicit cast explicit

This commit is contained in:
Andrew Meadows 2016-12-28 18:27:34 -08:00
parent 1e38170ba9
commit be0ca41eb3

View file

@ -370,7 +370,7 @@ glm::quat glmExtractRotation(const glm::mat4& matrix) {
glm::vec3 extractScale(const glm::mat4& matrix) {
glm::mat3 m(matrix);
float det = glm::determinant(m);
if (det < 0) {
if (det < 0.0f) {
// left handed matrix, flip sign to compensate.
return glm::vec3(-glm::length(m[0]), glm::length(m[1]), glm::length(m[2]));
} else {