Переглянути джерело

Slight optimization by avoiding an unnecessary initialization #654

Christophe Riccio 8 роки тому
батько
коміт
27f8e5b0a1
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      glm/gtx/matrix_factorisation.inl

+ 1 - 1
glm/gtx/matrix_factorisation.inl

@@ -16,7 +16,7 @@ namespace glm
 	template <length_t C, length_t R, typename T, precision P, template<length_t, length_t, typename, precision> class matType>
 	GLM_FUNC_QUALIFIER matType<C, R, T, P> fliplr(matType<C, R, T, P> const& in)
 	{
-		matType<C, R, T, P> out;
+		matType<C, R, T, P> out(uninitialize);
 		for (length_t i = 0; i < C; i++)
 		{
 			out[i] = in[(C - i) - 1];