Mesa (master): draw: Fix thinko in debug warnings.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Wed Apr 6 07:29:22 UTC 2011
Module: Mesa
Branch: master
Commit: dcbc9be38ecea30506198d0db037cbf532f070e4
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=dcbc9be38ecea30506198d0db037cbf532f070e4
Author: José Fonseca <jose.r.fonseca at gmail.com>
Date: Tue Apr 5 21:35:11 2011 +0100
draw: Fix thinko in debug warnings.
---
src/gallium/auxiliary/draw/draw_pt_vsplit_tmp.h | 6 +++---
1 files 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 e9714c1..bb3cbf8 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);
More information about the mesa-commit
mailing list