diff options
author | Keith Whitwell <[email protected]> | 2009-07-03 14:26:26 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2009-07-03 14:31:07 +0100 |
commit | b928d18398330d862ab162f687e224b93932824c (patch) | |
tree | 3adfa30cb26caf2099cdcfbe607068ac04197c15 | |
parent | aa98575ebb97bc38cf40acd3d78b72ee49f7b86b (diff) |
mesa/shaders: fix gl_NormalMatrix state parameters
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}.
-rw-r--r-- | src/mesa/shader/slang/slang_builtin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_builtin.c b/src/mesa/shader/slang/slang_builtin.c index 83e76b77db3..154609c26e7 100644 --- 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_TRANSPOSE }, + { "gl_NormalMatrix", STATE_MODELVIEW_MATRIX, STATE_MATRIX_INVERSE }, { NULL, 0, 0 } }; |