summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/draw/draw_pt_fetch_emit.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_pt_fetch_emit.c
parent7ca78a07b37e4cce0e258f711c6f8bbe1d98a633 (diff)
draw: second argument to unmap is max, not count
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pt_fetch_emit.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_pt_fetch_emit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_fetch_emit.c b/src/gallium/auxiliary/draw/draw_pt_fetch_emit.c
index c71228a71c..6b7d02a19b 100644
--- a/src/gallium/auxiliary/draw/draw_pt_fetch_emit.c
+++ b/src/gallium/auxiliary/draw/draw_pt_fetch_emit.c
@@ -263,7 +263,7 @@ static void fetch_emit_run( struct draw_pt_middle_end *middle,
draw->render->unmap_vertices( draw->render,
0,
- (ushort)fetch_count );
+ (ushort)(fetch_count - 1) );
/* XXX: Draw arrays path to avoid re-emitting index list again and
* again.
@@ -319,7 +319,7 @@ static void fetch_emit_run_linear( struct draw_pt_middle_end *middle,
}
}
- draw->render->unmap_vertices( draw->render, 0, count );
+ draw->render->unmap_vertices( draw->render, 0, count - 1 );
/* XXX: Draw arrays path to avoid re-emitting index list again and
* again.
@@ -370,7 +370,7 @@ static boolean fetch_emit_run_linear_elts( struct draw_pt_middle_end *middle,
count,
hw_verts );
- draw->render->unmap_vertices( draw->render, 0, (ushort)count );
+ draw->render->unmap_vertices( draw->render, 0, (ushort)(count - 1) );
/* XXX: Draw arrays path to avoid re-emitting index list again and
* again.