This commit is contained in:
Christophe Riccio 2014-11-15 21:37:59 +01:00
parent 45645988e9
commit 30e7eaeb86

View File

@ -112,27 +112,11 @@ namespace detail
# endif//GLM_SWIZZLE # endif//GLM_SWIZZLE
}; };
# else # else
/* union { T x, r, s; };
# if GLM_HAS_UNRESTRICTED_UNIONS union { T y, g, t; };
union union { T z, b, p; };
{ union { T w, a, q; };
typename detail::simd<T>::type data;
struct
{
union { T x, r, s; };
union { T y, g, t; };
union { T z, b, p; };
union { T w, a, q; };
};
};
# else
*/
union { T x, r, s; };
union { T y, g, t; };
union { T z, b, p; };
union { T w, a, q; };
//s# endif
# ifdef GLM_SWIZZLE # ifdef GLM_SWIZZLE
GLM_SWIZZLE_GEN_VEC_FROM_VEC4(T, P, tvec4, tvec2, tvec3, tvec4) GLM_SWIZZLE_GEN_VEC_FROM_VEC4(T, P, tvec4, tvec2, tvec3, tvec4)
# endif//GLM_SWIZZLE # endif//GLM_SWIZZLE