diff options
author | Brian <brian@yutani.localnet.net> | 2007-01-09 19:26:22 -0700 |
---|---|---|
committer | Brian <brian@yutani.localnet.net> | 2007-01-09 19:26:22 -0700 |
commit | 01a91eb65753c9090e1a05d728cf5c23ef49d5d4 (patch) | |
tree | 66851c75ed1e7ebea6ce0e351000c9f1a01f4ae1 /src/mesa/shader/prog_parameter.c | |
parent | b7978af6936d186112727cb9858fe7740eef1a7c (diff) |
get rid of STATE_USER_ATTRIB/STATE_AUTO_ATTRIB
Diffstat (limited to 'src/mesa/shader/prog_parameter.c')
-rw-r--r-- | src/mesa/shader/prog_parameter.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mesa/shader/prog_parameter.c b/src/mesa/shader/prog_parameter.c index 8945f2d854c..900fb7e1a5c 100644 --- a/src/mesa/shader/prog_parameter.c +++ b/src/mesa/shader/prog_parameter.c @@ -289,16 +289,14 @@ _mesa_add_attribute(struct gl_program_parameter_list *paramList, GLint i = _mesa_lookup_parameter_index(paramList, -1, name); if (i >= 0) { /* replace */ - ASSERT(paramList->Parameters[i].StateIndexes[0] == STATE_USER_ATTRIB); if (attrib < 0) attrib = i; - paramList->Parameters[i].StateIndexes[1] = attrib; + paramList->Parameters[i].StateIndexes[0] = attrib; } else { /* add */ gl_state_index state[STATE_LENGTH]; - state[0] = STATE_USER_ATTRIB; - state[1] = attrib; + state[0] = attrib; i = _mesa_add_parameter(paramList, PROGRAM_INPUT, name, size, NULL, state); } |