softpipe: Silence compiler warnings on Windows.

This commit is contained in:
Michal Krol
2008-08-07 16:22:34 +02:00
parent a56ccb90c6
commit d50d7a54de
+3 -3
View File
@@ -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];