projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gallium: drivers should reference vertex buffers
[mesa.git]
/
src
/
gallium
/
drivers
/
nv50
/
nv50_context.c
diff --git
a/src/gallium/drivers/nv50/nv50_context.c
b/src/gallium/drivers/nv50/nv50_context.c
index 0874cb5e4ea45f35365c79c1b62afc393931d780..4f9761617603bd1e9480fcd8378b0cf325b86454 100644
(file)
--- a/
src/gallium/drivers/nv50/nv50_context.c
+++ b/
src/gallium/drivers/nv50/nv50_context.c
@@
-49,6
+49,10
@@
nv50_destroy(struct pipe_context *pipe)
struct nv50_context *nv50 = nv50_context(pipe);
int i;
+ for (i = 0; i < nv50->vtxbuf_nr; i++) {
+ pipe_resource_reference(&nv50->vtxbuf[i].buffer, NULL);
+ }
+
for (i = 0; i < 64; i++) {
if (!nv50->state.hw[i])
continue;