projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64380cf
)
Fix build error on Ubuntu 16.04 (again)
author
sfan5
<sfan5@live.de>
Wed, 10 Jun 2020 09:46:14 +0000
(11:46 +0200)
committer
sfan5
<sfan5@live.de>
Wed, 10 Jun 2020 09:46:14 +0000
(11:46 +0200)
src/client/mesh.cpp
patch
|
blob
|
history
diff --git
a/src/client/mesh.cpp
b/src/client/mesh.cpp
index 91781373c55284394ab39adc0929f7590b61c984..68832849e255c9774881be73e866472e869ffe88 100644
(file)
--- a/
src/client/mesh.cpp
+++ b/
src/client/mesh.cpp
@@
-341,7
+341,7
@@
bool checkMeshNormals(scene::IMesh *mesh)
// hurting the performance and covering only really weird broken models.
f32 length = buffer->getNormal(0).getLength();
- if (!
isfinite(length) || fabs(length) < 1e-10
)
+ if (!
std::isfinite(length) || std::fabs(length) < 1e-10f
)
return false;
}