From e9ab34e0f077e9a3e9af4fc4a09082913472d8b7 Mon Sep 17 00:00:00 2001 From: Karol Kontny Date: Mon, 11 May 2020 15:26:46 +0200 Subject: [PATCH] Fixed warning when compiling with MSVS in SIMD mode --- glm/ext/matrix_transform.inl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/glm/ext/matrix_transform.inl b/glm/ext/matrix_transform.inl index a415157e..01cefab6 100644 --- a/glm/ext/matrix_transform.inl +++ b/glm/ext/matrix_transform.inl @@ -144,9 +144,10 @@ namespace glm template 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