From: Brian Date: Wed, 10 Jan 2007 19:18:33 +0000 (-0700) Subject: fix size bug in _mesa_add_attribute() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ee11842bfcdb928be269848835c5eb88b6d967ee;p=mesa.git fix size bug in _mesa_add_attribute() --- diff --git a/src/mesa/shader/prog_parameter.c b/src/mesa/shader/prog_parameter.c index fbc38398992..676f1722e5a 100644 --- a/src/mesa/shader/prog_parameter.c +++ b/src/mesa/shader/prog_parameter.c @@ -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); }