summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorKurt Daverman <[email protected]>2011-03-07 13:11:03 +0000
committerBrian Paul <[email protected]>2011-09-22 08:26:40 -0600
commit3c56280d330f50025fc948041f1413af55c50581 (patch)
tree41d2dfe341a4ac38987b08a026d1ab9768084307 /src/gallium
parent37ef7c22ab3ab9ac976ad955197fe80fae5bf8b8 (diff)
draw: Respect max_indices from the renderer.
Diffstat (limited to 'src/gallium')
-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 61ae4665539..a9b0f22c488 100644
--- a/src/gallium/auxiliary/draw/draw_pipe_vbuf.c
+++ b/src/gallium/auxiliary/draw/draw_pipe_vbuf.c
@@ -437,7 +437,7 @@ struct draw_stage *draw_vbuf_stage( struct draw_context *draw,
vbuf->stage.destroy = vbuf_destroy;
vbuf->render = render;
- vbuf->max_indices = MAX2(render->max_indices, UNDEFINED_VERTEX_ID-1);
+ vbuf->max_indices = MIN2(render->max_indices, UNDEFINED_VERTEX_ID-1);
vbuf->indices = (ushort *) align_malloc( vbuf->max_indices *
sizeof(vbuf->indices[0]),