diff options
author | Brian <[email protected]> | 2007-03-08 07:51:39 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2007-03-08 07:51:39 -0700 |
commit | 7e66cad998d7f8d51f373c5b45e9fd74f350d12e (patch) | |
tree | e1b8616bcc55c47556b97e2d3879bba2044ed5b9 /src/mesa/shader | |
parent | 9637c963f59192aaccf68e7690f5ffb1e17ba077 (diff) |
fix gl_TextureMatrix indexing
Diffstat (limited to 'src/mesa/shader')
-rw-r--r-- | src/mesa/shader/slang/slang_builtin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/shader/slang/slang_builtin.c b/src/mesa/shader/slang/slang_builtin.c index 8b5434c9080..2d09f6b64f9 100644 --- a/src/mesa/shader/slang/slang_builtin.c +++ b/src/mesa/shader/slang/slang_builtin.c @@ -76,8 +76,8 @@ lookup_statevar(const char *var, GLint index1, GLint index2, const char *field, } else if (strcmp(var, "gl_TextureMatrix") == 0) { tokens[0] = STATE_TEXTURE_MATRIX; - if (index2 >= 0) - tokens[1] = index2; + if (index1 >= 0) + tokens[1] = index1; isMatrix = GL_TRUE; } else if (strcmp(var, "gl_DepthRange") == 0) { |