From ee11842bfcdb928be269848835c5eb88b6d967ee Mon Sep 17 00:00:00 2001 From: Brian Date: Wed, 10 Jan 2007 12:18:33 -0700 Subject: [PATCH] fix size bug in _mesa_add_attribute() --- src/mesa/shader/prog_parameter.c | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.30.2