projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e69089
)
always init param vars to silence valgrind warnings
author
Brian
<brian@nostromo.localnet.net>
Fri, 9 Feb 2007 19:04:52 +0000
(12:04 -0700)
committer
Brian
<brian@nostromo.localnet.net>
Fri, 9 Feb 2007 19:04:52 +0000
(12:04 -0700)
src/mesa/shader/prog_parameter.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/prog_parameter.c
b/src/mesa/shader/prog_parameter.c
index 870e826460dd1cd142cb2aa8792158516dc96cf9..3ebd559119c6be5572c6674ef1fd6b6a90b737d4 100644
(file)
--- a/
src/mesa/shader/prog_parameter.c
+++ b/
src/mesa/shader/prog_parameter.c
@@
-131,6
+131,10
@@
_mesa_add_parameter(struct gl_program_parameter_list *paramList,
COPY_4V(paramList->ParameterValues[oldNum + i], values);
values += 4;
}
+ else {
+ /* silence valgrind */
+ ASSIGN_4V(paramList->ParameterValues[oldNum + i], 0, 0, 0, 0);
+ }
size -= 4;
}