fix _mesa_uniform_matrix() transpose bug

This commit is contained in:
Brian
2007-03-09 11:34:18 -07:00
parent b03e1712b2
commit 9f44247acf

View File

@@ -1005,7 +1005,7 @@ _mesa_uniform_matrix(GLcontext *ctx, GLint cols, GLint rows,
for (col = 0; col < cols; col++) {
GLfloat *v = shProg->Uniforms->ParameterValues[location + col];
for (row = 0; row < rows; row++) {
v[row] = values[col * rows + row];
v[row] = values[row * cols + col];
}
}
}
@@ -1014,7 +1014,7 @@ _mesa_uniform_matrix(GLcontext *ctx, GLint cols, GLint rows,
for (col = 0; col < cols; col++) {
GLfloat *v = shProg->Uniforms->ParameterValues[location + col];
for (row = 0; row < rows; row++) {
v[row] = values[row * cols + col];
v[row] = values[col * rows + row];
}
}
}