summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/draw/draw_context.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2008-05-29 00:17:53 +0100
committerKeith Whitwell <keith@tungstengraphics.com>2008-05-29 00:17:53 +0100
commit62628c4d3d497cbca73fde869c9069fa90e6453e (patch)
tree3942a61642833fcbadd3a26fa9c9745730607a85 /src/gallium/auxiliary/draw/draw_context.c
parent728d1f7f43b6db9f4f42c2d16ba223c492d1147d (diff)
draw: share machine
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_context.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_context.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_context.c b/src/gallium/auxiliary/draw/draw_context.c
index 2242074965..8509baf865 100644
--- a/src/gallium/auxiliary/draw/draw_context.c
+++ b/src/gallium/auxiliary/draw/draw_context.c
@@ -174,6 +174,8 @@ void draw_set_viewport_state( struct draw_context *draw,
viewport->translate[1] == 0.0f &&
viewport->translate[2] == 0.0f &&
viewport->translate[3] == 0.0f);
+
+ draw_vs_set_viewport( draw, viewport );
}
@@ -218,6 +220,7 @@ draw_set_mapped_constant_buffer(struct draw_context *draw,
const void *buffer)
{
draw->pt.user.constants = buffer;
+ draw_vs_set_constants( draw, (const float (*)[4])buffer );
}