projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7622496
)
u_vbuf: unbind vertex buffers on destroy
author
Marek Olšák
<maraeo@gmail.com>
Sun, 29 Apr 2012 15:41:37 +0000
(17:41 +0200)
committer
Marek Olšák
<maraeo@gmail.com>
Sun, 29 Apr 2012 15:41:37 +0000
(17:41 +0200)
src/gallium/auxiliary/util/u_vbuf.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_vbuf.c
b/src/gallium/auxiliary/util/u_vbuf.c
index
2d60c07
..
401c8a4
100644
(file)
--- a/
src/gallium/auxiliary/util/u_vbuf.c
+++ b/
src/gallium/auxiliary/util/u_vbuf.c
@@
-239,6
+239,8
@@
void u_vbuf_destroy(struct u_vbuf *mgr)
{
unsigned i;
+ mgr->pipe->set_vertex_buffers(mgr->pipe, 0, NULL);
+
for (i = 0; i < mgr->nr_vertex_buffers; i++) {
pipe_resource_reference(&mgr->vertex_buffer[i].buffer, NULL);
}