diff options
author | Keith Whitwell <[email protected]> | 2008-04-19 18:41:53 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2008-04-19 18:41:53 +0100 |
commit | bfd179776f5ded75c2134a54f0a57a1579118cd0 (patch) | |
tree | cf327b4cd431bb5ed1c33896c37db7632ed10b2f | |
parent | b1158a5e0031aa33a71baa7bc14ca2c0fe0dabc4 (diff) |
draw: add missing translate->set_buffer for fetch emit path
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pt_fetch_emit.c | 8 |
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 ); + } } |