projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa98575
)
mesa/shaders: fix gl_NormalMatrix state parameters
author
Keith Whitwell
<keithw@vmware.com>
Fri, 3 Jul 2009 13:26:26 +0000
(14:26 +0100)
committer
Keith Whitwell
<keithw@vmware.com>
Fri, 3 Jul 2009 13:31:07 +0000
(14:31 +0100)
gl_NormalMatrix is the inverse transpose of the modelview matrix, but
as every matrix here needs to be transposed, we end up with
{MODELVIEW_MATRIX, INVERSE}.
src/mesa/shader/slang/slang_builtin.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/slang/slang_builtin.c
b/src/mesa/shader/slang/slang_builtin.c
index 83e76b77db337ca5d8e5ad912c95847b8c427b03..154609c26e7f59c0150e12ad081b845455ead75c 100644
(file)
--- a/
src/mesa/shader/slang/slang_builtin.c
+++ b/
src/mesa/shader/slang/slang_builtin.c
@@
-85,7
+85,7
@@
lookup_statevar(const char *var, GLint index1, GLint index2, const char *field,
{ "gl_TextureMatrixTranspose", STATE_TEXTURE_MATRIX, 0 },
{ "gl_TextureMatrixInverseTranspose", STATE_TEXTURE_MATRIX, STATE_MATRIX_INVERSE },
- { "gl_NormalMatrix", STATE_MODELVIEW_MATRIX, STATE_MATRIX_
TRANSPO
SE },
+ { "gl_NormalMatrix", STATE_MODELVIEW_MATRIX, STATE_MATRIX_
INVER
SE },
{ NULL, 0, 0 }
};