summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2010-03-06 19:35:10 +0100
committerMarek Olšák <maraeo@gmail.com>2010-03-06 21:27:02 +0100
commitc37a20416d681a3fea42a1a2ce907eb8e11ba795 (patch)
tree0d96685ff8eca49efad2aa77e45d603c62fb62bc
parent45ae4434b5bd779e74d12e5b63fcf91d88f4cb28 (diff)
r300g: clamp vertex max index according to currently bound buffers
-rw-r--r--src/gallium/drivers/r300/r300_render.c2
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 6c891029a5..073664fa45 100644
--- a/src/gallium/drivers/r300/r300_render.c
+++ b/src/gallium/drivers/r300/r300_render.c
@@ -278,7 +278,7 @@ static void r300_emit_draw_elements(struct r300_context *r300,
DBG(r300, DBG_DRAW, "r300: Indexbuf of %u indices, min %u max %u\n",
count, minIndex, maxIndex);
- maxIndex = MIN2(maxIndex, ((1 << 24) - 1));
+ maxIndex = MIN2(maxIndex, r300->vertex_buffer_max_index);
if (alt_num_verts) {
BEGIN_CS(16);