mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 22:08:26 +02:00
draw: Properly limit vertex buffer fetches on draw arrays.
We need to clamp vertex buffer fetch based on its size, not based on the
user specified max index hint.
This matches draw_pt_fetch_run() above.
NOTE: This is a candidate for the stable branches.
Reviewed-by: Brian Paul <brianp@vmware.com>
(cherry picked from commit 7da3a947c7)
This commit is contained in:
parent
e582e35227
commit
4a0423e1bd
1 changed files with 1 additions and 1 deletions
|
|
@ -189,7 +189,7 @@ draw_pt_fetch_run_linear(struct pt_fetch *fetch,
|
|||
((char *)draw->pt.user.vbuffer[i] +
|
||||
draw->pt.vertex_buffer[i].buffer_offset),
|
||||
draw->pt.vertex_buffer[i].stride,
|
||||
draw->pt.user.max_index + draw->pt.user.eltBias);
|
||||
draw->pt.max_index);
|
||||
}
|
||||
|
||||
translate->run( translate,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue