summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/draw/draw_context.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2008-04-17 13:14:22 +0100
committerKeith Whitwell <keith@tungstengraphics.com>2008-04-17 14:23:13 +0100
commitc96d565643de271c6bda066e892b25d0a97ea4d0 (patch)
treecd12a67d1d8e6d64e2eafc9cbde3564af0b5fbe9 /src/gallium/auxiliary/draw/draw_context.c
parent8abfcea690c66f75d61905f0ec5497b8fd7950d4 (diff)
draw: keep record of number of active vertex buffers
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_context.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_context.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_context.c b/src/gallium/auxiliary/draw/draw_context.c
index 0c314f6e1d..cdcbfdc323 100644
--- a/src/gallium/auxiliary/draw/draw_context.c
+++ b/src/gallium/auxiliary/draw/draw_context.c
@@ -249,6 +249,7 @@ draw_set_vertex_buffers(struct draw_context *draw,
draw_do_flush( draw, DRAW_FLUSH_VERTEX_CACHE/*STATE_CHANGE*/ );
memcpy(draw->vertex_buffer, buffers, count * sizeof(buffers[0]));
+ draw->nr_vertex_buffers = count;
}