summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-04-19 05:28:27 +0200
committerMarek Olšák <[email protected]>2012-04-24 01:39:22 +0200
commit634066946e265aa5d2628ddca16c6556d2091a66 (patch)
treebd18a97ba830e174fba164d30a06c701b548cc32
parent6fe30fbc96a7b102d7c23ae0dd7be0b8739276c9 (diff)
u_vbuf: don't upload user buffers if the driver supports them
-rw-r--r--src/gallium/auxiliary/util/u_vbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_vbuf.c b/src/gallium/auxiliary/util/u_vbuf.c
index e2e0215404c..c25385fbf27 100644
--- a/src/gallium/auxiliary/util/u_vbuf.c
+++ b/src/gallium/auxiliary/util/u_vbuf.c
@@ -731,7 +731,7 @@ void u_vbuf_set_vertex_buffers(struct u_vbuf *mgr, unsigned count,
continue;
}
- if (vb->buffer->user_ptr) {
+ if (!mgr->caps.user_vertex_buffers && vb->buffer->user_ptr) {
mgr->user_vb_mask |= 1 << i;
pipe_resource_reference(&real_vb->buffer, NULL);
continue;