Explorar o código

Fixed GCC 7.1.0 failing tests #666

Christophe Riccio %!s(int64=8) %!d(string=hai) anos
pai
achega
e37cf6e47f

+ 3 - 1
test/core/core_type_mat2x4.cpp

@@ -1,3 +1,5 @@
+#include <glm/gtc/epsilon.hpp>
+#include <glm/gtc/constants.hpp>
 #include <glm/vector_relational.hpp>
 #include <glm/mat2x2.hpp>
 #include <glm/mat2x3.hpp>
@@ -83,7 +85,7 @@ namespace cast
 		glm::mat2x4 Identity(1.0f);
 
 		for(glm::length_t i = 0, length = B.length(); i < length; ++i)
-			Error += glm::all(glm::equal(B[i], Identity[i])) ? 0 : 1;
+			Error += glm::all(glm::epsilonEqual(B[i], Identity[i], glm::epsilon<float>())) ? 0 : 1;
 
 		return Error;
 	}

+ 3 - 1
test/core/core_type_mat3x4.cpp

@@ -1,3 +1,5 @@
+#include <glm/gtc/epsilon.hpp>
+#include <glm/gtc/constants.hpp>
 #include <glm/vector_relational.hpp>
 #include <glm/mat2x2.hpp>
 #include <glm/mat2x3.hpp>
@@ -87,7 +89,7 @@ namespace cast
 		glm::mat3x4 Identity(1.0f);
 
 		for(glm::length_t i = 0, length = B.length(); i < length; ++i)
-			Error += glm::all(glm::equal(B[i], Identity[i])) ? 0 : 1;
+			Error += glm::all(glm::epsilonEqual(B[i], Identity[i], glm::epsilon<float>())) ? 0 : 1;
 
 		return Error;
 	}

+ 2 - 1
test/core/core_type_mat4x4.cpp

@@ -1,3 +1,4 @@
+#include <glm/gtc/constants.hpp>
 #include <glm/gtc/epsilon.hpp>
 #include <glm/matrix.hpp>
 #include <glm/mat2x2.hpp>
@@ -263,7 +264,7 @@ namespace cast
 		glm::mat4x4 Identity(1.0f);
 
 		for(glm::length_t i = 0, length = B.length(); i < length; ++i)
-			Error += glm::all(glm::equal(B[i], Identity[i])) ? 0 : 1;
+			Error += glm::all(glm::epsilonEqual(B[i], Identity[i], glm::epsilon<float>())) ? 0 : 1;
 
 		return Error;
 	}