Browse Source

Fixed build

Christophe Riccio 7 years ago
parent
commit
f82d23949a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      test/core/core_type_mat4x4.cpp

+ 2 - 1
test/core/core_type_mat4x4.cpp

@@ -45,6 +45,8 @@ template <typename matType>
 static int test_inverse()
 {
 	typedef typename matType::value_type value_type;
+
+	value_type const Epsilon = 0.001f;
 	
 	int Error = 0;
 
@@ -57,7 +59,6 @@ static int test_inverse()
 	matType const Inverse = Identity / Matrix;
 	matType const Result = Matrix * Inverse;
 
-	value_type const Epsilon(0.001);
 	Error += glm::all(glm::equal(Identity, Result, Epsilon)) ? 0 : 1;
 	
 	return Error;