diff options
author | Brian <[email protected]> | 2007-02-21 15:42:10 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2007-02-21 15:42:10 -0700 |
commit | 502c132738bfe4259ecc478c72969b435271a28d (patch) | |
tree | e8fcb0c2db6c094c4722e2d6c0eca79567bc2bb9 | |
parent | f958aabdf3e3dc82827628cab97b159bd5089651 (diff) |
fix copy&paste errors
-rw-r--r-- | src/mesa/shader/slang/slang_builtin.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mesa/shader/slang/slang_builtin.c b/src/mesa/shader/slang/slang_builtin.c index 08a4a6a7080..688ef9c88ab 100644 --- a/src/mesa/shader/slang/slang_builtin.c +++ b/src/mesa/shader/slang/slang_builtin.c @@ -47,6 +47,7 @@ * Lookup GL state given a variable name, 0, 1 or 2 indexes and a field. * Allocate room for the state in the given param list and return position * in the list. + * Yes, this is kind of ugly, but it works. */ static GLint lookup_statevar(const char *var, GLint index1, GLint index2, const char *field, @@ -262,15 +263,15 @@ lookup_statevar(const char *var, GLint index1, GLint index2, const char *field, tokens[1] = index1; /* tex unit */ tokens[2] = STATE_TEXGEN_OBJECT_T; } - else if (strcmp(var, "gl_ObjectPlaneT") == 0) { + else if (strcmp(var, "gl_ObjectPlaneR") == 0) { tokens[0] = STATE_TEXGEN; tokens[1] = index1; /* tex unit */ - tokens[2] = STATE_TEXGEN_OBJECT_T; + tokens[2] = STATE_TEXGEN_OBJECT_R; } - else if (strcmp(var, "gl_ObjectPlaneT") == 0) { + else if (strcmp(var, "gl_ObjectPlaneQ") == 0) { tokens[0] = STATE_TEXGEN; tokens[1] = index1; /* tex unit */ - tokens[2] = STATE_TEXGEN_OBJECT_T; + tokens[2] = STATE_TEXGEN_OBJECT_Q; } else if (strcmp(var, "gl_Fog") == 0) { tokens[0] = STATE_FOG; |