Browse Source

Merge pull request #1011 from Bargor/master

Fixed warning when compiling with MSVS in SIMD mode #1011
Christophe 5 years ago
parent
commit
6c97378695
1 changed files with 5 additions and 4 deletions
  1. 5 4
      glm/ext/matrix_transform.inl

+ 5 - 4
glm/ext/matrix_transform.inl

@@ -144,9 +144,10 @@ namespace glm
 	template<typename T, qualifier Q>
 	GLM_FUNC_QUALIFIER mat<4, 4, T, Q> lookAt(vec<3, T, Q> const& eye, vec<3, T, Q> const& center, vec<3, T, Q> const& up)
 	{
-		GLM_IF_CONSTEXPR(GLM_CONFIG_CLIP_CONTROL & GLM_CLIP_CONTROL_LH_BIT)
-			return lookAtLH(eye, center, up);
-		else
-			return lookAtRH(eye, center, up);
+#       if (GLM_CONFIG_CLIP_CONTROL & GLM_CLIP_CONTROL_LH_BIT)
+            return lookAtLH(eye, center, up);
+#       else
+            return lookAtRH(eye, center, up);
+#       endif
 	}
 }//namespace glm