From dcbc9be38ecea30506198d0db037cbf532f070e4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Tue, 5 Apr 2011 21:35:11 +0100 Subject: [PATCH] draw: Fix thinko in debug warnings. --- src/gallium/auxiliary/draw/draw_pt_vsplit_tmp.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.30.2