summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/draw/draw_context.c
diff options
context:
space:
mode:
authorZack Rusin <[email protected]>2007-09-28 12:28:16 -0400
committerZack Rusin <[email protected]>2007-09-28 12:28:16 -0400
commit901577e07fcab0cf90a272fee900cb0831ae84c3 (patch)
tree9e8674230a3e584c674d0683de5d40321bd51fc1 /src/mesa/pipe/draw/draw_context.c
parentf2a33a63f1f41681375baa2a9ad261cb60db2a85 (diff)
Revert "Redoing the way we handle vertex shaders for the draw module."
This reverts commit 6dcfddb8e2ec2bfb6187b912807fa65f28da2c5e.
Diffstat (limited to 'src/mesa/pipe/draw/draw_context.c')
-rw-r--r--src/mesa/pipe/draw/draw_context.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/pipe/draw/draw_context.c b/src/mesa/pipe/draw/draw_context.c
index 5efb173228f..66c66ff698e 100644
--- a/src/mesa/pipe/draw/draw_context.c
+++ b/src/mesa/pipe/draw/draw_context.c
@@ -155,6 +155,14 @@ void draw_set_viewport_state( struct draw_context *draw,
}
+void
+draw_set_vertex_shader(struct draw_context *draw,
+ const struct pipe_shader_state *shader)
+{
+ draw_flush( draw );
+ draw->vertex_shader = *shader;
+}
+
void
draw_set_vertex_buffer(struct draw_context *draw,