From: Brian Paul Date: Thu, 20 Oct 2005 22:04:01 +0000 (+0000) Subject: fix bad loops in TransposeMatrix[fd]() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=adfd5510c0ec2100c37b80b1db1cff76f349a1af;p=mesa.git fix bad loops in TransposeMatrix[fd]() --- 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]; } }