summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorNicolai Haehnle <[email protected]>2008-06-30 08:37:13 +0200
committerNicolai Haehnle <[email protected]>2008-06-30 08:37:37 +0200
commit23e9b43ce4a6ad5875f69363dec7d2baa8afa2ea (patch)
tree53664caebebd719c8be52637c209d203835d06ed /src/mesa/drivers/dri
parent4002b75e6267ecd0f9e3093e221e34ed5c8485d4 (diff)
r300: Fix dumb mistake in LOD bias translation
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/r300/r300_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_state.c b/src/mesa/drivers/dri/r300/r300_state.c
index 9e4cc777a98..f6f0c390662 100644
--- a/src/mesa/drivers/dri/r300/r300_state.c
+++ b/src/mesa/drivers/dri/r300/r300_state.c
@@ -1388,7 +1388,7 @@ static GLuint translate_lod_bias(GLfloat bias)
b = (1 << 9)-1;
else if (b < -(1 << 9))
b = -(1 << 9);
- return ((GLuint)b) << R300_LOD_BIAS_SHIFT;
+ return (((GLuint)b) << R300_LOD_BIAS_SHIFT) & R300_LOD_BIAS_MASK;
}
static void r300SetupTextures(GLcontext * ctx)