projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d6b0b0
)
mesa/st: initialize velements state properly
author
Roland Scheidegger
<sroland@vmware.com>
Tue, 9 Mar 2010 19:31:40 +0000
(20:31 +0100)
committer
Roland Scheidegger
<sroland@vmware.com>
Tue, 9 Mar 2010 19:33:21 +0000
(20:33 +0100)
one variable is a bitfield where the rest is never written to, which caused
valgrind to complain. Might have caused cso to not recognize an already stored
state. Reported by Christoph Bumiller.
src/mesa/state_tracker/st_draw.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_draw.c
b/src/mesa/state_tracker/st_draw.c
index
4d2e391
..
8a6e1ed
100644
(file)
--- a/
src/mesa/state_tracker/st_draw.c
+++ b/
src/mesa/state_tracker/st_draw.c
@@
-563,6
+563,7
@@
st_draw_vbo(GLcontext *ctx,
(void) check_uniforms;
#endif
+ memset(velements, 0, sizeof(struct pipe_vertex_element) * vpv->num_inputs);
/*
* Setup the vbuffer[] and velements[] arrays.
*/