summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-10-20 22:04:01 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-10-20 22:04:01 +0000
commitadfd5510c0ec2100c37b80b1db1cff76f349a1af (patch)
tree5f8855e594f6ce4a2f2ac92b5a61496fe01f9ffe
parenta90909e89234b95e44a2cd08181167ba234b5fac (diff)
fix bad loops in TransposeMatrix[fd]()
-rw-r--r--src/glx/x11/indirect_transpose_matrix.c4
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 d7b9de6bdb..2144410e5a 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];
}
}