summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/draw/draw_arrays.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/pipe/draw/draw_arrays.c')
-rw-r--r--src/mesa/pipe/draw/draw_arrays.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/pipe/draw/draw_arrays.c b/src/mesa/pipe/draw/draw_arrays.c
index f6bf174dc0..b7d06dd5a7 100644
--- a/src/mesa/pipe/draw/draw_arrays.c
+++ b/src/mesa/pipe/draw/draw_arrays.c
@@ -55,7 +55,11 @@ draw_arrays(struct draw_context *draw, unsigned prim,
/* tell drawing pipeline we're beginning drawing */
draw->pipeline.first->begin( draw->pipeline.first );
- draw_invalidate_vcache( draw );
+ /* XXX: Shouldn't really be needed - cache should be invalidated
+ * after setting new vertex buffers, vertex elements, but not
+ * between draws.
+ */
+ draw_vertex_cache_invalidate( draw );
draw_set_prim( draw, prim );