diff options
author | Ian Romanick <idr@us.ibm.com> | 2004-03-18 00:16:44 +0000 |
---|---|---|
committer | Ian Romanick <idr@us.ibm.com> | 2004-03-18 00:16:44 +0000 |
commit | 6af3dca18a2315ea431b5ea868913093d2111491 (patch) | |
tree | 733fc817b4d692e7566aba9d4daf0cb97d2a829a /src/mesa/drivers/dri/r128/r128_tex.c | |
parent | 16c704e8f7cd9b7d7c5d6667cb38e016e3b608d1 (diff) |
Convert int(8|32)_t to uint(8|32)_t, like should have been done the first time.
Diffstat (limited to 'src/mesa/drivers/dri/r128/r128_tex.c')
-rw-r--r-- | src/mesa/drivers/dri/r128/r128_tex.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/r128/r128_tex.c b/src/mesa/drivers/dri/r128/r128_tex.c index 44a6a415b5..62933b040d 100644 --- a/src/mesa/drivers/dri/r128/r128_tex.c +++ b/src/mesa/drivers/dri/r128/r128_tex.c @@ -462,9 +462,9 @@ static void r128TexEnv( GLcontext *ctx, GLenum target, case GL_TEXTURE_LOD_BIAS: { - int32_t t = rmesa->setup.tex_cntl_c; + uint32_t t = rmesa->setup.tex_cntl_c; GLint bias; - int32_t b; + uint32_t b; /* GTH: This isn't exactly correct, but gives good results up to a * certain point. It is better than completely ignoring the LOD @@ -484,7 +484,7 @@ static void r128TexEnv( GLcontext *ctx, GLenum target, bias = 127; } - b = (int32_t)bias & 0xff; + b = (uint32_t)bias & 0xff; t &= ~R128_LOD_BIAS_MASK; t |= (b << R128_LOD_BIAS_SHIFT); |