Browse Source

Fixed float comparison warnings #270

Christophe Riccio 11 years ago
parent
commit
5b911d1eb0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      glm/gtc/matrix_transform.inl

+ 2 - 2
glm/gtc/matrix_transform.inl

@@ -213,8 +213,8 @@ namespace glm
 		T zFar
 	)
 	{
-		assert(aspect != static_cast<T>(0));
-		assert(zFar != zNear);
+		assert(abs(aspect - std::numeric_limits<T>::epsilon()) > static_cast<T>(0));
+		assert(zFar > zNear);
 
 		T const tanHalfFovy = tan(fovy / static_cast<T>(2));