From 0c6723aee564a7b320ca122c3c9b003c863cc714 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 15 Nov 2006 23:38:02 +0000 Subject: Add a size parameter to _mesa_add_unnamed_constant() and _mesa_add_named_constant() to indicate vector size (1, 2, 3 or 4). Always 4 for now... --- src/mesa/shader/arbprogparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/shader/arbprogparse.c') diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c index a423e4ff138..5a61f30193b 100644 --- a/src/mesa/shader/arbprogparse.c +++ b/src/mesa/shader/arbprogparse.c @@ -1810,7 +1810,7 @@ parse_param_elements (GLcontext * ctx, const GLubyte ** inst, parse_constant (inst, const_values, Program, use); idx = _mesa_add_named_constant(Program->Base.Parameters, (char *) param_var->name, - const_values); + const_values, 4); if (param_var->param_binding_begin == ~0U) param_var->param_binding_begin = idx; param_var->param_binding_length++; -- cgit v1.2.3