From: José Fonseca Date: Tue, 5 Apr 2011 20:35:11 +0000 (+0100) Subject: draw: Fix thinko in debug warnings. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dcbc9be38ecea30506198d0db037cbf532f070e4;p=mesa.git draw: Fix thinko in debug warnings. --- diff --git a/src/gallium/auxiliary/draw/draw_pt_vsplit_tmp.h b/src/gallium/auxiliary/draw/draw_pt_vsplit_tmp.h index e9714c1b3fa..bb3cbf80ad7 100644 --- a/src/gallium/auxiliary/draw/draw_pt_vsplit_tmp.h +++ b/src/gallium/auxiliary/draw/draw_pt_vsplit_tmp.h @@ -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);