summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-01-10 12:18:33 -0700
committerBrian <[email protected]>2007-01-10 12:18:33 -0700
commitee11842bfcdb928be269848835c5eb88b6d967ee (patch)
treec914e6fa2ce43922ab024c36724ef417ba94d13f /src/mesa/shader
parent29bff4e12defa0037167ceb0940be632cc87b578 (diff)
fix size bug in _mesa_add_attribute()
Diffstat (limited to 'src/mesa/shader')
-rw-r--r--src/mesa/shader/prog_parameter.c2
1 files changed, 2 insertions, 0 deletions
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);
}