diff options
author | Brian <brian.paul@tungstengraphics.com> | 2008-03-27 16:00:15 -0600 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2008-03-27 16:06:36 -0600 |
commit | 978145a075255ae153ee05c2a037400e61558079 (patch) | |
tree | 952bd6b9d9afca289040e9c05ebc89044bde0849 /src | |
parent | 227af94cce1c0fc898a5ccef1d6f61a31cdd770f (diff) |
Set param_var->param_binding_type = PROGRAM_CONSTANT
cherry-picked from gallium-0.1
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/shader/arbprogparse.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c index 8803658c1e..1a3d232e0f 100644 --- a/src/mesa/shader/arbprogparse.c +++ b/src/mesa/shader/arbprogparse.c @@ -1860,12 +1860,14 @@ parse_param_elements (GLcontext * ctx, const GLubyte ** inst, break; case PARAM_CONSTANT: + /* parsing something like {1.0, 2.0, 3.0, 4.0} */ parse_constant (inst, const_values, Program, use); idx = _mesa_add_named_constant(Program->Base.Parameters, (char *) param_var->name, const_values, 4); if (param_var->param_binding_begin == ~0U) param_var->param_binding_begin = idx; + param_var->param_binding_type = PROGRAM_CONSTANT; param_var->param_binding_length++; Program->Base.NumParameters++; break; |