Przeglądaj źródła

Additional fix for GLM_FORCE_SIZE_FUNC #245

Christophe Riccio 11 lat temu
rodzic
commit
8cb9328e11
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      glm/detail/func_common.inl

+ 2 - 2
glm/detail/func_common.inl

@@ -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;
 		}