Slight optimization by avoiding an unnecessary initialization #654

master
Christophe Riccio ago%!(EXTRA string=8 years)
parent 759a1d8ef2
commit 27f8e5b0a1
  1. 2
      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> 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) 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++) for (length_t i = 0; i < C; i++)
{ {
out[i] = in[(C - i) - 1]; out[i] = in[(C - i) - 1];

Loading…
Cancel
Save