From 77baa2b90b431a113f50676cd097a0c8b14abc9e Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Tue, 14 Feb 2017 23:50:05 -0700 Subject: [PATCH] light: fix mangle_from_vec test epsilon --- light/test_light.cc | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/light/test_light.cc b/light/test_light.cc index 228a1307..b48d7172 100644 --- a/light/test_light.cc +++ b/light/test_light.cc @@ -425,15 +425,15 @@ TEST(mathlib, InterpolateNormals) { EXPECT_FALSE(GLM_InterpolateNormal(poly, normals, vec3(-0.1, 0, 0)).first); } -static bool pointsEqualEpsilon(const vec3 &a, const vec3 &b) { - return all(epsilonEqual(a, b, vec3(POINT_EQUAL_EPSILON))); +static bool pointsEqualEpsilon(const vec3 &a, const vec3 &b, const float epsilon) { + return all(epsilonEqual(a, b, vec3(epsilon))); } static bool polysEqual(const vector &p1, const vector &p2) { if (p1.size() != p2.size()) return false; for (int i=0; i