]> git.lizzy.rs Git - minetest.git/blobdiff - src/client/mesh.cpp
Cleanup ClientLauncher structure (#10160)
[minetest.git] / src / client / mesh.cpp
index 91781373c55284394ab39adc0929f7590b61c984..e1ec22068034b20603c8c8c66812d2ee12b2b387 100644 (file)
@@ -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) || length < 1e-10f)
                        return false;
        }