diff options
author | Brian <[email protected]> | 2007-02-09 12:04:52 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2007-02-09 12:04:52 -0700 |
commit | cf490a7f81b393242ab5eeec085e79a60bcf6345 (patch) | |
tree | 45d17230e8234225d7093e24aefdd339d022aaf1 | |
parent | 5e6908944bbc76be020a3f5306c2a674f944f42e (diff) |
always init param vars to silence valgrind warnings
-rw-r--r-- | src/mesa/shader/prog_parameter.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/shader/prog_parameter.c b/src/mesa/shader/prog_parameter.c index 870e826460d..3ebd559119c 100644 --- 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; } |