projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9637c96
)
fix gl_TextureMatrix indexing
author
Brian
<brian@yutani.localnet.net>
Thu, 8 Mar 2007 14:51:39 +0000
(07:51 -0700)
committer
Brian
<brian@yutani.localnet.net>
Thu, 8 Mar 2007 14:51:39 +0000
(07:51 -0700)
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 8b5434c9080e738f4971e8549c1e29ab4645bfd5..2d09f6b64f955ece5039b85717147e7a9b0ed5b1 100644
(file)
--- 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 (index
2
>= 0)
- tokens[1] = index
2
;
+ if (index
1
>= 0)
+ tokens[1] = index
1
;
isMatrix = GL_TRUE;
}
else if (strcmp(var, "gl_DepthRange") == 0) {