summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 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];
}
}