mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-06 01:30:35 +02:00
r300g: fix fallback for misaligned ushort indices with num vertices >= 65535
This commit is contained in:
parent
3d5ac32f3b
commit
d173f1ba8a
1 changed files with 5 additions and 1 deletions
|
|
@ -615,7 +615,11 @@ static void r300_draw_range_elements(struct pipe_context* pipe,
|
|||
minIndex, maxIndex, mode, start, count, indices3);
|
||||
} else {
|
||||
do {
|
||||
short_count = MIN2(count, 65534);
|
||||
if (indexSize == 2 && (start & 1))
|
||||
short_count = MIN2(count, 65535);
|
||||
else
|
||||
short_count = MIN2(count, 65534);
|
||||
|
||||
r300_emit_draw_elements(r300, indexBuffer, indexSize,
|
||||
minIndex, maxIndex,
|
||||
mode, start, short_count, indices3);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue