Set param_var->param_binding_type = PROGRAM_CONSTANT
authorBrian <brian.paul@tungstengraphics.com>
Thu, 27 Mar 2008 22:00:15 +0000 (16:00 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Thu, 27 Mar 2008 22:06:36 +0000 (16:06 -0600)
cherry-picked from gallium-0.1

src/mesa/shader/arbprogparse.c

index 8803658c1e982ed2c156728918bc23d011552f45..1a3d232e0feab232fd268991dc9db2d0d4d6d615 100644 (file)
@@ -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;