mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 11:20:11 +01:00
u_prim_restart: Fix index scanning with start offset
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13681>
This commit is contained in:
parent
bc345281ab
commit
b34fed64fa
1 changed files with 1 additions and 1 deletions
|
|
@ -239,7 +239,7 @@ util_prim_restart_convert_to_direct(const void *index_map,
|
||||||
#define SCAN_INDEXES(TYPE) \
|
#define SCAN_INDEXES(TYPE) \
|
||||||
for (i = 0; i <= draw->count; i++) { \
|
for (i = 0; i <= draw->count; i++) { \
|
||||||
if (i == draw->count || \
|
if (i == draw->count || \
|
||||||
((const TYPE *) index_map)[i] == info->restart_index) { \
|
((const TYPE *) index_map)[draw->start + i] == info->restart_index) { \
|
||||||
/* cut / restart */ \
|
/* cut / restart */ \
|
||||||
if (count > 0) { \
|
if (count > 0) { \
|
||||||
if (!add_range(info->mode, &ranges, draw->start + start, count, draw->index_bias)) { \
|
if (!add_range(info->mode, &ranges, draw->start + start, count, draw->index_bias)) { \
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue