Browse Source

Merge pull request #5 from komiga/master

Fixed component swapping in tmat2x2::_inverse()
Christophe Riccio 13 years ago
parent
commit
f96b0424ec
1 changed files with 1 additions and 1 deletions
  1. 1 1
      glm/core/type_mat2x2.inl

+ 1 - 1
glm/core/type_mat2x2.inl

@@ -271,8 +271,8 @@ namespace detail
 
 
         tmat2x2<T> Inverse(
         tmat2x2<T> Inverse(
             + this->value[1][1] / Determinant,
             + this->value[1][1] / Determinant,
+            - this->value[0][1] / Determinant,
             - this->value[1][0] / Determinant,
             - this->value[1][0] / Determinant,
-            - this->value[0][1] / Determinant, 
             + this->value[0][0] / Determinant);
             + this->value[0][0] / Determinant);
         return Inverse;
         return Inverse;
     }
     }