From 01915e90e6912f06d43d443a09157f7bbc96ddc5 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 8 Mar 2001 15:23:46 +0000 Subject: More g++ warning fixes. Fixes for CHAN_BITS==16, it seems to work. --- src/mesa/swrast/s_texture.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/mesa/swrast/s_texture.c') diff --git a/src/mesa/swrast/s_texture.c b/src/mesa/swrast/s_texture.c index 7b1b4e94e3f..3a0da6e2531 100644 --- a/src/mesa/swrast/s_texture.c +++ b/src/mesa/swrast/s_texture.c @@ -1,4 +1,4 @@ -/* $Id: s_texture.c,v 1.14 2001/03/03 20:33:30 brianp Exp $ */ +/* $Id: s_texture.c,v 1.15 2001/03/08 15:23:46 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -76,7 +76,7 @@ if (wrapMode == GL_CLAMP_TO_EDGE) { \ if (I0 < 0) \ I0 = 0; \ - if (I1 >= SIZE) \ + if (I1 >= (GLint) SIZE) \ I1 = SIZE - 1; \ } \ } \ @@ -2441,10 +2441,10 @@ sample_depth_texture(const GLcontext *ctx, j1 += texImage->Border; } else { - if (i0 < 0 || i0 >= width) useBorderTexel |= I0BIT; - if (i1 < 0 || i1 >= width) useBorderTexel |= I1BIT; - if (j0 < 0 || j0 >= height) useBorderTexel |= J0BIT; - if (j1 < 0 || j1 >= height) useBorderTexel |= J1BIT; + if (i0 < 0 || i0 >= (GLint) width) useBorderTexel |= I0BIT; + if (i1 < 0 || i1 >= (GLint) width) useBorderTexel |= I1BIT; + if (j0 < 0 || j0 >= (GLint) height) useBorderTexel |= J0BIT; + if (j1 < 0 || j1 >= (GLint) height) useBorderTexel |= J1BIT; } /* get four depth samples from the texture */ -- cgit v1.2.3