Browse Source

Added assets in perspective

Christophe Riccio 12 years ago
parent
commit
c1e150e6ec
1 changed files with 4 additions and 0 deletions
  1. 4 0
      glm/gtc/matrix_transform.inl

+ 4 - 0
glm/gtc/matrix_transform.inl

@@ -268,6 +268,10 @@ namespace glm
 		valType const & zFar
 		valType const & zFar
 	)
 	)
 	{
 	{
+		assert(width > valType(0));
+		assert(height > valType(0));
+		assert(fov > valType(0));
+	
 #ifdef GLM_FORCE_RADIANS
 #ifdef GLM_FORCE_RADIANS
 		valType rad = fov;
 		valType rad = fov;
 #else
 #else