Browse Source

Merge remote-tracking branch 'origin/master' into dev

dmuratshin 8 years ago
parent
commit
fe8e0a11ab
1 changed files with 1 additions and 1 deletions
  1. 1 1
      oxygine/src/math/Matrix.h

+ 1 - 1
oxygine/src/math/Matrix.h

@@ -498,7 +498,7 @@ namespace oxygine
     template <class T>
     template <class T>
     inline MatrixT<T>& MatrixT<T>::transpose(MatrixT& out, const MatrixT& mat)
     inline MatrixT<T>& MatrixT<T>::transpose(MatrixT& out, const MatrixT& mat)
     {
     {
-        vector4* rows = (vector4*)out.ml;
+        vector4* rows = (vector4*)mat.ml;
         out = MatrixT(
         out = MatrixT(
                   rows[0].x, rows[1].x, rows[2].x, rows[3].x,
                   rows[0].x, rows[1].x, rows[2].x, rows[3].x,
                   rows[0].y, rows[1].y, rows[2].y, rows[3].y,
                   rows[0].y, rows[1].y, rows[2].y, rows[3].y,