diff options
author | Eric Anholt <[email protected]> | 2009-06-23 19:30:25 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2009-06-23 19:31:13 -0700 |
commit | b72dea5441e8e9226dabf1826fa3bc129c7bc281 (patch) | |
tree | 9619c917f7269ce6650bd58e25dd8211c22e71e3 | |
parent | d43599afef046a36ae75a29eaea941eb04929abf (diff) |
i965: Set the max index buffer address correctly according to the docs.
It's the last addressable byte, not the byte after the end of the buffer.
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_draw_upload.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw_upload.c b/src/mesa/drivers/dri/i965/brw_draw_upload.c index 1b8bcc14ec0..3ef56a00683 100644 --- a/src/mesa/drivers/dri/i965/brw_draw_upload.c +++ b/src/mesa/drivers/dri/i965/brw_draw_upload.c @@ -635,7 +635,7 @@ static void brw_emit_indices(struct brw_context *brw) if (index_buffer == NULL) return; - ib_size = get_size(index_buffer->type) * index_buffer->count; + ib_size = get_size(index_buffer->type) * index_buffer->count - 1; /* Emit the indexbuffer packet: */ |