summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-04-29 17:41:37 +0200
committerMarek Olšák <[email protected]>2012-04-29 17:41:37 +0200
commit18bcb962bbad451a5e34f0315f03b8fb4533ea73 (patch)
treeabf225e6da0b4a6e46c56b43ed2b6c88ad4c63ec /src
parent7622496d7b8fb4677a66d8843c078b3fa753f02f (diff)
u_vbuf: unbind vertex buffers on destroy
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/util/u_vbuf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_vbuf.c b/src/gallium/auxiliary/util/u_vbuf.c
index 2d60c07c4ad..401c8a4a850 100644
--- 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);
}