3
0
Fork 0
mirror of https://github.com/lubosz/overte.git synced 2025-04-26 16:55:31 +02:00

Better guard Transform scale

This commit is contained in:
Atlante45 2015-06-17 16:03:48 +02:00
parent 8a3a7e5b7f
commit 1cab853f18

View file

@ -29,7 +29,7 @@ inline bool isValidScale(glm::vec3 scale) {
}
inline bool isValidScale(float scale) {
bool result = scale != 0.0f;
bool result = scale != 0.0f && !glm::isnan(scale) && !glm::isinf(scale);
assert(result);
return result;
}