Browse Source

Fixed tests

Christophe Riccio 7 years ago
parent
commit
75a711dffb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/gtx/gtx_intersect.cpp

+ 1 - 1
test/gtx/gtx_intersect.cpp

@@ -37,7 +37,7 @@ int test_intersectLineTriangle()
 
 	bool const Result = glm::intersectLineTriangle(Orig, Dir, Vert0, Vert1, Vert2, Position);
 
-	Error += glm::all(glm::epsilonEqual(Position, glm::vec3(0), std::numeric_limits<float>::epsilon())) ? 0 : 1;
+	Error += glm::all(glm::epsilonEqual(Position, glm::vec3(2.0f, 0.0f, 0.0f), std::numeric_limits<float>::epsilon())) ? 0 : 1;
 	Error += Result ? 0 : 1;
 
 	return Error;