projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b63c144
)
st/nine: Unset vtxbuf on reset
author
Axel Davy
<axel.davy@ens.fr>
Sun, 15 Nov 2015 16:10:40 +0000
(17:10 +0100)
committer
Axel Davy
<axel.davy@ens.fr>
Thu, 4 Feb 2016 21:12:17 +0000
(22:12 +0100)
We forgot to reset vtxbuf.
This fixes some crashes.
Signed-off-by: Axel Davy <axel.davy@ens.fr>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
src/gallium/state_trackers/nine/nine_state.c
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/nine/nine_state.c
b/src/gallium/state_trackers/nine/nine_state.c
index 2e77d62b64fbf429ea1f1a9549e5ff8d8faf8407..f994ba984106162fdbf274180bcf03eb093390fb 100644
(file)
--- a/
src/gallium/state_trackers/nine/nine_state.c
+++ b/
src/gallium/state_trackers/nine/nine_state.c
@@
-1314,8
+1314,10
@@
nine_state_clear(struct nine_state *state, const boolean device)
nine_bind(&state->vs, NULL);
nine_bind(&state->ps, NULL);
nine_bind(&state->vdecl, NULL);
- for (i = 0; i < PIPE_MAX_ATTRIBS; ++i)
+ for (i = 0; i < PIPE_MAX_ATTRIBS; ++i)
{
nine_bind(&state->stream[i], NULL);
+ pipe_resource_reference(&state->vtxbuf[i].buffer, NULL);
+ }
nine_bind(&state->idxbuf, NULL);
for (i = 0; i < NINE_MAX_SAMPLERS; ++i) {
if (device &&