mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-04 14:40:32 +01:00
draw: Fix thinko in debug warnings.
This commit is contained in:
parent
c0f6bfd489
commit
dcbc9be38e
1 changed files with 3 additions and 3 deletions
|
|
@ -56,7 +56,7 @@ CONCAT(vsplit_primitive_, ELT_TYPE)(struct vsplit_frontend *vsplit,
|
|||
|
||||
for (i = 0; i < icount; i++) {
|
||||
ELT_TYPE idx = ib[i];
|
||||
if (idx >= min_index && idx <= max_index) {
|
||||
if (idx < min_index || idx > max_index) {
|
||||
debug_printf("warning: index out of range\n");
|
||||
}
|
||||
}
|
||||
|
|
@ -89,7 +89,7 @@ CONCAT(vsplit_primitive_, ELT_TYPE)(struct vsplit_frontend *vsplit,
|
|||
for (i = 0; i < icount; i++) {
|
||||
ELT_TYPE idx = ib[i];
|
||||
|
||||
if (idx >= min_index && idx <= max_index) {
|
||||
if (idx < min_index || idx > max_index) {
|
||||
debug_printf("warning: index out of range\n");
|
||||
}
|
||||
vsplit->draw_elts[i] = (ushort) idx;
|
||||
|
|
@ -99,7 +99,7 @@ CONCAT(vsplit_primitive_, ELT_TYPE)(struct vsplit_frontend *vsplit,
|
|||
for (i = 0; i < icount; i++) {
|
||||
ELT_TYPE idx = ib[i];
|
||||
|
||||
if (idx >= min_index && idx <= max_index) {
|
||||
if (idx < min_index || idx > max_index) {
|
||||
debug_printf("warning: index out of range\n");
|
||||
}
|
||||
vsplit->draw_elts[i] = (ushort) (idx - min_index);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue