summaryrefslogtreecommitdiffstats
path: root/src/mesa/vbo/vbo_split.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-01-27 17:03:48 -0700
committerBrian Paul <[email protected]>2010-01-27 17:04:30 -0700
commitdd89ac249c56d04bbc23ecd9877426af9f09269c (patch)
treeed2debec83116fa11478f09a787d9c1cb32262ca /src/mesa/vbo/vbo_split.c
parent20fbb24b67dda0679774756e4b6d98c2c66c2c42 (diff)
mesa: fix int/uint comparison warnings
Reported by Karl Schultz.
Diffstat (limited to 'src/mesa/vbo/vbo_split.c')
-rw-r--r--src/mesa/vbo/vbo_split.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/vbo/vbo_split.c b/src/mesa/vbo/vbo_split.c
index c445acca7d6..ce40cbbcc3d 100644
--- a/src/mesa/vbo/vbo_split.c
+++ b/src/mesa/vbo/vbo_split.c
@@ -108,12 +108,14 @@ void vbo_split_prims( GLcontext *ctx,
vbo_draw_func draw,
const struct split_limits *limits )
{
- GLuint max_basevertex = prim->basevertex;
+ GLint max_basevertex = prim->basevertex;
GLuint i;
for (i = 1; i < nr_prims; i++)
max_basevertex = MAX2(max_basevertex, prim[i].basevertex);
+ /* XXX max_basevertex is computed but not used, why? */
+
if (ib) {
if (limits->max_indices == 0) {
/* Could traverse the indices, re-emitting vertices in turn.