diff options
-rw-r--r-- | src/mesa/shader/slang/slang_builtin.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_builtin.c b/src/mesa/shader/slang/slang_builtin.c index 20fafee4b9e..db00c54b8a2 100644 --- a/src/mesa/shader/slang/slang_builtin.c +++ b/src/mesa/shader/slang/slang_builtin.c @@ -108,6 +108,7 @@ lookup_statevar(const char *var, GLint index1, GLint index2, const char *field, if (tokens[0] == STATE_TEXTURE_MATRIX) { if (index1 >= 0) { tokens[1] = index1; /* which texture matrix */ + index1 = 0; /* prevent extra addition at end of function */ } } if (index1 < 0) { |