diff options
author | José Fonseca <[email protected]> | 2011-04-05 21:35:11 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2011-04-06 08:27:52 +0100 |
commit | dcbc9be38ecea30506198d0db037cbf532f070e4 (patch) | |
tree | ac7bca623f2bf319f2ff73d4377932e6b4b24172 /src/gallium | |
parent | c0f6bfd489091da20ad9580d8ac6aeb187ededfd (diff) |
draw: Fix thinko in debug warnings.
Diffstat (limited to 'src/gallium')
-rw-r--r-- | 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 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); |