mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 02:13:09 +02:00
div by zero fix
This commit is contained in:
parent
cbb0d27f68
commit
fe57a20979
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ static bool isEqual(const glm::vec3& u, const glm::vec3& v) {
|
|||
if (uLen == 0.0f) {
|
||||
return glm::length(v) <= EPSILON;
|
||||
} else {
|
||||
return glm::length(u - v) / glm::length(u) <= EPSILON;
|
||||
return (glm::length(u - v) / uLen) <= EPSILON;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue