mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
i965: Reuse precalculated ib_type_size value.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
9aa02a205d
commit
b859a12f21
1 changed files with 1 additions and 1 deletions
|
|
@ -840,7 +840,7 @@ static void brw_upload_indices(struct brw_context *brw)
|
|||
/* If the index buffer isn't aligned to its element size, we have to
|
||||
* rebase it into a temporary.
|
||||
*/
|
||||
if ((get_size(index_buffer->type) - 1) & offset) {
|
||||
if ((ib_type_size - 1) & offset) {
|
||||
GLubyte *map = ctx->Driver.MapBufferRange(ctx,
|
||||
offset,
|
||||
ib_size,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue