mirror of
https://github.com/g-truc/glm.git
synced 2026-06-08 02:23:48 +00:00
Fix initialization of vector in convert_splat
When templating on types that don't have implicit constructors this fails
This commit is contained in:
committed by
Christophe
parent
d34c19ecd0
commit
36e7a9ad69
@@ -322,7 +322,7 @@ namespace detail
|
||||
template<int c>
|
||||
GLM_FUNC_QUALIFIER GLM_CONSTEXPR static vec<L, T, Q> call(vec<L, T, Q> const& a)
|
||||
{
|
||||
vec<L, T, Q> v(0);
|
||||
vec<L, T, Q> v(T(0));
|
||||
for (int i = 0; i < L; ++i)
|
||||
v[i] = a[c];
|
||||
return v;
|
||||
|
||||
Reference in New Issue
Block a user