diff options
author | Brian Paul <[email protected]> | 2005-10-20 22:04:01 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-10-20 22:04:01 +0000 |
commit | adfd5510c0ec2100c37b80b1db1cff76f349a1af (patch) | |
tree | 5f8855e594f6ce4a2f2ac92b5a61496fe01f9ffe | |
parent | a90909e89234b95e44a2cd08181167ba234b5fac (diff) |
fix bad loops in TransposeMatrix[fd]()
-rw-r--r-- | src/glx/x11/indirect_transpose_matrix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glx/x11/indirect_transpose_matrix.c b/src/glx/x11/indirect_transpose_matrix.c index d7b9de6bdb1..2144410e5ac 100644 --- a/src/glx/x11/indirect_transpose_matrix.c +++ b/src/glx/x11/indirect_transpose_matrix.c @@ -29,7 +29,7 @@ static void TransposeMatrixf(const GLfloat s[16], GLfloat d[16]) { int i, j; for (i = 0; i < 4; i++) { - for (j = 0; j < i; j++) { + for (j = 0; j < 4; j++) { d[i*4+j] = s[j*4+i]; } } @@ -39,7 +39,7 @@ static void TransposeMatrixd(const GLdouble s[16], GLdouble d[16]) { int i, j; for (i = 0; i < 4; i++) { - for (j = 0; j < i; j++) { + for (j = 0; j < 4; j++) { d[i*4+j] = s[j*4+i]; } } |