mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-27 12:14:10 +08:00
i965/draw: Use the correct buffer index for interleaved VBO sizes
The buffer_range_* arrays are indexed by buffer index not element index. Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
This commit is contained in:
parent
e58fabc93a
commit
6f89e51c84
@ -529,8 +529,10 @@ brw_prepare_vertices(struct brw_context *brw)
|
||||
input->buffer = brw->vb.enabled[k]->buffer;
|
||||
input->offset = glarray->Ptr - other->Ptr;
|
||||
|
||||
buffer_range_start[k] = MIN2(buffer_range_start[k], start);
|
||||
buffer_range_end[k] = MAX2(buffer_range_end[k], start + range);
|
||||
buffer_range_start[input->buffer] =
|
||||
MIN2(buffer_range_start[input->buffer], start);
|
||||
buffer_range_end[input->buffer] =
|
||||
MAX2(buffer_range_end[input->buffer], start + range);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user