projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b03e171
)
fix _mesa_uniform_matrix() transpose bug
author
Brian
<brian@yutani.localnet.net>
Fri, 9 Mar 2007 18:34:18 +0000
(11:34 -0700)
committer
Brian
<brian@yutani.localnet.net>
Fri, 9 Mar 2007 18:34:18 +0000
(11:34 -0700)
src/mesa/shader/shader_api.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/shader_api.c
b/src/mesa/shader/shader_api.c
index 924c9d5e9451c90d501152bc61c5674633143da2..271464e9f183ee950bfb7bd4e3fab02a8d24257b 100644
(file)
--- 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
];
}
}
}