aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2008-04-19 18:41:53 +0100
committerKeith Whitwell <[email protected]>2008-04-19 18:41:53 +0100
commitbfd179776f5ded75c2134a54f0a57a1579118cd0 (patch)
treecf327b4cd431bb5ed1c33896c37db7632ed10b2f /src
parentb1158a5e0031aa33a71baa7bc14ca2c0fe0dabc4 (diff)
draw: add missing translate->set_buffer for fetch emit path
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/draw/draw_pt_fetch_emit.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_fetch_emit.c b/src/gallium/auxiliary/draw/draw_pt_fetch_emit.c
index 1b9b3bfaa68..70d136dce64 100644
--- a/src/gallium/auxiliary/draw/draw_pt_fetch_emit.c
+++ b/src/gallium/auxiliary/draw/draw_pt_fetch_emit.c
@@ -185,6 +185,14 @@ static void fetch_emit_prepare( struct draw_pt_middle_end *middle,
}
feme->point_size = draw->rasterizer->point_size;
+
+ for (i = 0; i < draw->pt.nr_vertex_buffers; i++) {
+ feme->translate->set_buffer(feme->translate,
+ i,
+ ((char *)draw->pt.user.vbuffer[i] +
+ draw->pt.vertex_buffer[i].buffer_offset),
+ draw->pt.vertex_buffer[i].pitch );
+ }
}