Additional fix for GLM_FORCE_SIZE_FUNC #245

This commit is contained in:
Christophe Riccio 2014-10-12 02:11:02 +02:00
parent d06db1133d
commit 8cb9328e11

View File

@ -81,8 +81,8 @@ namespace detail
{
GLM_FUNC_QUALIFIER static vecType<T, P> call(vecType<T, P> const & x, vecType<T, P> const & y, vecType<bool, P> const & a)
{
vecType<T, P> Result;
for(length_t i = 0; i < detail::component_count(x); ++i)
vecType<T, P> Result(vecType<T, P>::_null);
for(detail::component_count_t i = 0; i < detail::component_count(x); ++i)
Result[i] = a[i] ? y[i] : x[i];
return Result;
}