commit | ee11842bfcdb928be269848835c5eb88b6d967ee | [log] [tgz] |
---|---|---|
author | Brian <brian@yutani.localnet.net> | Wed Jan 10 12:18:33 2007 -0700 |
committer | Brian <brian@yutani.localnet.net> | Wed Jan 10 12:18:33 2007 -0700 |
tree | c914e6fa2ce43922ab024c36724ef417ba94d13f | |
parent | 29bff4e12defa0037167ceb0940be632cc87b578 [diff] [blame] |
fix size bug in _mesa_add_attribute()
diff --git a/src/mesa/shader/prog_parameter.c b/src/mesa/shader/prog_parameter.c index fbc3839..676f172 100644 --- a/src/mesa/shader/prog_parameter.c +++ b/src/mesa/shader/prog_parameter.c
@@ -297,6 +297,8 @@ /* add */ gl_state_index state[STATE_LENGTH]; state[0] = attrib; + if (size < 0) + size = 4; i = _mesa_add_parameter(paramList, PROGRAM_INPUT, name, size, NULL, state); }