From 55661885ddc0feb2ac6bd980adc1ef156091e047 Mon Sep 17 00:00:00 2001 From: Francisco Facioni Date: Thu, 6 Nov 2025 13:33:09 +0100 Subject: [PATCH] Fix initialization of vector in convert_splat When templating on types that don't have implicit constructors this fails --- glm/detail/func_common.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glm/detail/func_common.inl b/glm/detail/func_common.inl index 32b7bac78..5f01c38dc 100644 --- a/glm/detail/func_common.inl +++ b/glm/detail/func_common.inl @@ -345,7 +345,7 @@ namespace detail template GLM_FUNC_QUALIFIER GLM_CONSTEXPR static vec call(vec const& a) { - vec v(0); + vec v(T(0)); for (int i = 0; i < L; ++i) v[i] = a[c]; return v;