diff options
author | Corbin Simpson <[email protected]> | 2010-03-20 17:16:46 -0700 |
---|---|---|
committer | Corbin Simpson <[email protected]> | 2010-03-20 17:16:46 -0700 |
commit | 4711aa089ec7af70bb9118ad8d7830e475805297 (patch) | |
tree | 38baf404cadd552d9908a95ddbb09d9fed015418 /src/gallium/drivers/r300/r300_render.c | |
parent | 7c8221b46008cd4f217d3ddab59dcc4c488a54b3 (diff) |
r300g: Correctly hax max_index on pipe_vertex_buffers.
Still not happy with this, but at least things seem to work.
Diffstat (limited to 'src/gallium/drivers/r300/r300_render.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_render.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_render.c b/src/gallium/drivers/r300/r300_render.c index 47100c83b0b..40c1a420428 100644 --- a/src/gallium/drivers/r300/r300_render.c +++ b/src/gallium/drivers/r300/r300_render.c @@ -307,7 +307,7 @@ static void r300_emit_draw_elements(struct r300_context *r300, assert((start * indexSize) % 4 == 0); assert(count < (1 << 24)); - maxIndex = MIN3(maxIndex, r300->vertex_buffer_max_index, count - minIndex); + maxIndex = MIN2(maxIndex, r300->vertex_buffer_max_index); DBG(r300, DBG_DRAW, "r300: Indexbuf of %u indices, min %u max %u\n", count, minIndex, maxIndex); |