Permalink
Browse files

add workaround

  • Loading branch information...
p0nce committed Oct 13, 2013
1 parent 0311f12 commit b7fd58070ee0a50eb322dd16cbcf8c2ff1c81137
Showing with 6 additions and 2 deletions.
  1. +6 −2 gl3n/linalg.d
View
@@ -1671,7 +1671,11 @@ struct Matrix(type, int rows_, int cols_) if((rows_ > 0) && (cols_ > 0)) {
/// Inverts the current matrix (nxn matrices, n <= 4).
void invert() {
- invert(this);
+ // workaround Issue #11238
+ // uses a temporary instead of invert(this)
+ Matrix temp;
+ invert(temp);
+ this.matrix = temp.matrix;
}
}
@@ -2421,4 +2425,4 @@ struct Quaternion(type) {
}
/// Pre-defined quaternion of type float.
-alias Quaternion!(float) quat;
+alias Quaternion!(float) quat;

0 comments on commit b7fd580

Please sign in to comment.