summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-03-09 11:34:18 -0700
committerBrian <[email protected]>2007-03-09 11:34:18 -0700
commit9f44247acf62b91669f77974a4bbad687d58859e (patch)
tree8b044bdec0ec29f5c15cce467908c92b3d944f7e /src
parentb03e1712b2d06159c13564ad8f70f79cf586510e (diff)
fix _mesa_uniform_matrix() transpose bug
Diffstat (limited to 'src')
-rw-r--r--src/mesa/shader/shader_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/shader/shader_api.c b/src/mesa/shader/shader_api.c
index 924c9d5e945..271464e9f18 100644
--- a/src/mesa/shader/shader_api.c
+++ b/src/mesa/shader/shader_api.c
@@ -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];
}
}
}