fix size bug in _mesa_add_attribute()

This commit is contained in:
Brian 2007-01-10 12:18:33 -07:00
parent 29bff4e12d
commit ee11842bfc

View file

@ -297,6 +297,8 @@ _mesa_add_attribute(struct gl_program_parameter_list *paramList,
/* 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);
}