From 3b1af3fe0b6c9b071dcb5a557b493980bd23c6e4 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Fri, 1 Jul 2016 01:01:32 +0200 Subject: [PATCH] Fixed build using SIMD --- glm/detail/type_vec4_simd.inl | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/glm/detail/type_vec4_simd.inl b/glm/detail/type_vec4_simd.inl index 2ad15e8b..21504f03 100644 --- a/glm/detail/type_vec4_simd.inl +++ b/glm/detail/type_vec4_simd.inl @@ -341,9 +341,23 @@ namespace detail # if !GLM_HAS_DEFAULTED_FUNCTIONS template <> - GLM_FUNC_QUALIFIER GLM_CONSTEXPR_CTOR tvec4::tvec4() + GLM_FUNC_QUALIFIER GLM_CONSTEXPR_CTOR tvec4::tvec4() # ifndef GLM_FORCE_NO_CTOR_INIT : data(_mm_setzero_ps()) +# endif + {} + + template <> + GLM_FUNC_QUALIFIER GLM_CONSTEXPR_CTOR tvec4::tvec4() +# ifndef GLM_FORCE_NO_CTOR_INIT + : data(_mm_setzero_ps()) +# endif + {} + + template <> + GLM_FUNC_QUALIFIER GLM_CONSTEXPR_CTOR tvec4::tvec4() +# ifndef GLM_FORCE_NO_CTOR_INIT + : data(_mm_setzero_ps()) # endif {} # endif//!GLM_HAS_DEFAULTED_FUNCTIONS