projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdc8636
)
set param type to PROGRAM_CONSTANT when parsing immediates
author
Brian
<brian.paul@tungstengraphics.com>
Fri, 18 Jan 2008 19:45:55 +0000
(12:45 -0700)
committer
Brian
<brian.paul@tungstengraphics.com>
Fri, 18 Jan 2008 19:45:55 +0000
(12:45 -0700)
src/mesa/shader/arbprogparse.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/arbprogparse.c
b/src/mesa/shader/arbprogparse.c
index 9a5290d920e35685f16bbac4333d3f92c375af89..3f3c4c91aad9391109bd9f43146f5f20448f89d5 100644
(file)
--- 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;