summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/draw/draw_pipe_vbuf.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2009-02-17 12:39:05 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2009-02-17 12:39:05 +0000
commit1c4f67b980b6bec5788336a9cdd18c4fcec5e492 (patch)
tree16e29b40ca08cc144835cdfccbd90e44109aaf8e /src/gallium/auxiliary/draw/draw_pipe_vbuf.c
parent7ca78a07b37e4cce0e258f711c6f8bbe1d98a633 (diff)
draw: second argument to unmap is max, not count
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pipe_vbuf.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_pipe_vbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pipe_vbuf.c b/src/gallium/auxiliary/draw/draw_pipe_vbuf.c
index b083411458..ffeeeb6ede 100644
--- a/src/gallium/auxiliary/draw/draw_pipe_vbuf.c
+++ b/src/gallium/auxiliary/draw/draw_pipe_vbuf.c
@@ -341,7 +341,7 @@ vbuf_flush_vertices( struct vbuf_stage *vbuf )
{
if(vbuf->vertices) {
- vbuf->render->unmap_vertices( vbuf->render, 0, vbuf->nr_vertices );
+ vbuf->render->unmap_vertices( vbuf->render, 0, vbuf->nr_vertices - 1 );
if (vbuf->nr_indices)
{