|
|
@@ -177,11 +177,11 @@ namespace detail
|
|
|
#if(GLM_HAS_INITIALIZER_LISTS)
|
|
|
template <typename T, precision P>
|
|
|
template <typename U>
|
|
|
- GLM_FUNC_QUALIFIER tmat4x4<T, P>::tmat4x4(std::initializer_list<U> m)
|
|
|
+ GLM_FUNC_QUALIFIER tmat4x4<T, P>::tmat4x4(std::initializer_list<U> l)
|
|
|
{
|
|
|
- assert(m.size() >= this->length());
|
|
|
+ assert(l.size() == this->length() * this->value[0].length());
|
|
|
|
|
|
- typename std::initializer_list<U>::iterator p = m.begin();
|
|
|
+ typename std::initializer_list<U>::iterator p = l.begin();
|
|
|
|
|
|
this->value[0] = tvec4<T, P>(*(p + 0), *(p + 1), *(p + 2), *(p + 3));
|
|
|
this->value[1] = tvec4<T, P>(*(p + 4), *(p + 5), *(p + 6), *(p + 7));
|
|
|
@@ -190,12 +190,14 @@ namespace detail
|
|
|
}
|
|
|
|
|
|
template <typename T, precision P>
|
|
|
- GLM_FUNC_QUALIFIER tmat4x4<T, P>::tmat4x4(std::initializer_list<tvec4<T, P> > m)
|
|
|
+ GLM_FUNC_QUALIFIER tmat4x4<T, P>::tmat4x4(std::initializer_list<tvec4<T, P> > l)
|
|
|
{
|
|
|
- this->value[0] = m.begin()[0];
|
|
|
- this->value[1] = m.begin()[1];
|
|
|
- this->value[2] = m.begin()[2];
|
|
|
- this->value[3] = m.begin()[3];
|
|
|
+ assert(l.size() == this->length());
|
|
|
+
|
|
|
+ this->value[0] = l.begin()[0];
|
|
|
+ this->value[1] = l.begin()[1];
|
|
|
+ this->value[2] = l.begin()[2];
|
|
|
+ this->value[3] = l.begin()[3];
|
|
|
}
|
|
|
#endif//GLM_HAS_INITIALIZER_LISTS
|
|
|
|