draw: add missing translate->set_buffer for fetch emit path
authorKeith Whitwell <keith@tungstengraphics.com>
Sat, 19 Apr 2008 17:41:53 +0000 (18:41 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Sat, 19 Apr 2008 17:41:53 +0000 (18:41 +0100)
src/gallium/auxiliary/draw/draw_pt_fetch_emit.c

index 1b9b3bfaa68f7be42c9e4e757ce82289eb547de2..70d136dce642a4544c58363318f5034e585a19b6 100644 (file)
@@ -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 );
+   }
 }