Mesa (master): draw: Respect max_indices from the renderer.
Brian Paul
brianp at kemper.freedesktop.org
Thu Sep 22 14:45:11 UTC 2011
Module: Mesa
Branch: master
Commit: 3c56280d330f50025fc948041f1413af55c50581
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3c56280d330f50025fc948041f1413af55c50581
Author: Kurt Daverman <krd at vmware.com>
Date: Mon Mar 7 13:11:03 2011 +0000
draw: Respect max_indices from the renderer.
---
src/gallium/auxiliary/draw/draw_pipe_vbuf.c | 2 +-
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 61ae466..a9b0f22 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]),
More information about the mesa-commit
mailing list