mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 16:28:08 +02:00
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.
This commit is contained in:
parent
d43599afef
commit
b72dea5441
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue