summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/draw/draw_private.h
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_private.h
parent8abfcea690c66f75d61905f0ec5497b8fd7950d4 (diff)
draw: keep record of number of active vertex buffers
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_private.h')
-rw-r--r--src/gallium/auxiliary/draw/draw_private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_private.h b/src/gallium/auxiliary/draw/draw_private.h
index 8ac061cc9f..359a8b8a3d 100644
--- a/src/gallium/auxiliary/draw/draw_private.h
+++ b/src/gallium/auxiliary/draw/draw_private.h
@@ -245,7 +245,10 @@ struct draw_context
/* pipe state that we need: */
const struct pipe_rasterizer_state *rasterizer;
struct pipe_viewport_state viewport;
+
struct pipe_vertex_buffer vertex_buffer[PIPE_MAX_ATTRIBS];
+ unsigned nr_vertex_buffers;
+
struct pipe_vertex_element vertex_element[PIPE_MAX_ATTRIBS];
struct draw_vertex_shader *vertex_shader;