mirror of
https://github.com/g-truc/glm.git
synced 2024-11-30 03:44:38 +00:00
Additional fix for GLM_FORCE_SIZE_FUNC #245
This commit is contained in:
parent
d06db1133d
commit
8cb9328e11
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user