summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichal Krol <michal@tungstengraphics.com>2008-08-07 16:22:34 +0200
committerMichal Krol <michal@tungstengraphics.com>2008-08-07 16:22:34 +0200
commitd50d7a54de89e602a9951264878dfe06924e1adb (patch)
treeb5ed1cec006a3ea36ab427b3bcb00672d2276603 /src
parenta56ccb90c6a374c86158ac2323f844a4003560fa (diff)
softpipe: Silence compiler warnings on Windows.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/softpipe/sp_tex_sample.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/softpipe/sp_tex_sample.c b/src/gallium/drivers/softpipe/sp_tex_sample.c
index ed150527e2..8e39269533 100644
--- a/src/gallium/drivers/softpipe/sp_tex_sample.c
+++ b/src/gallium/drivers/softpipe/sp_tex_sample.c
@@ -601,9 +601,9 @@ get_texel(struct tgsi_sampler *sampler,
unsigned face, unsigned level, int x, int y, int z,
float rgba[NUM_CHANNELS][QUAD_SIZE], unsigned j)
{
- if (x < 0 || x >= sampler->texture->width[level] ||
- y < 0 || y >= sampler->texture->height[level] ||
- z < 0 || z >= sampler->texture->depth[level]) {
+ if (x < 0 || x >= (int) sampler->texture->width[level] ||
+ y < 0 || y >= (int) sampler->texture->height[level] ||
+ z < 0 || z >= (int) sampler->texture->depth[level]) {
rgba[0][j] = sampler->state->border_color[0];
rgba[1][j] = sampler->state->border_color[1];
rgba[2][j] = sampler->state->border_color[2];