OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e57d5c4
)
Fix some valgrind complaints
author
Keith Whitwell
<keith@tungstengraphics.com>
Tue, 10 May 2005 18:22:19 +0000
(18:22 +0000)
committer
Keith Whitwell
<keith@tungstengraphics.com>
Tue, 10 May 2005 18:22:19 +0000
(18:22 +0000)
src/mesa/shader/program.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/program.c
b/src/mesa/shader/program.c
index
a375805
..
1e2d34a
100644
(file)
--- a/
src/mesa/shader/program.c
+++ b/
src/mesa/shader/program.c
@@
-408,6
+408,10
@@
add_parameter(struct program_parameter_list *paramList,
}
else {
paramList->NumParameters = n + 1;
+
+ _mesa_memset(¶mList->Parameters[n], 0,
+ sizeof(struct program_parameter));
+
paramList->Parameters[n].Name = name ? _mesa_strdup(name) : NULL;
paramList->Parameters[n].Type = type;
if (values)