diff options
author | Brian <[email protected]> | 2008-01-18 12:45:55 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2008-01-18 12:45:55 -0700 |
commit | 7cbfe8c51dfa8ef1f4671e817759edc7a79ce17a (patch) | |
tree | 55e8fba1d76c493c2f081ef4bd4c300b30e90d32 /src/mesa/shader | |
parent | fdc8636bdc65deb0d95a62a51c8d9bca05bc6bb8 (diff) |
set param type to PROGRAM_CONSTANT when parsing immediates
Diffstat (limited to 'src/mesa/shader')
-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 9a5290d920e..3f3c4c91aad 100644 --- a/src/mesa/shader/arbprogparse.c +++ b/src/mesa/shader/arbprogparse.c @@ -1825,12 +1825,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; |