fix gl_TextureMatrix indexing
authorBrian <brian@yutani.localnet.net>
Thu, 8 Mar 2007 14:51:39 +0000 (07:51 -0700)
committerBrian <brian@yutani.localnet.net>
Thu, 8 Mar 2007 14:51:39 +0000 (07:51 -0700)
src/mesa/shader/slang/slang_builtin.c

index 8b5434c9080e738f4971e8549c1e29ab4645bfd5..2d09f6b64f955ece5039b85717147e7a9b0ed5b1 100644 (file)
@@ -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) {