r300: Fix dumb mistake in LOD bias translation

This commit is contained in:
Nicolai Haehnle 2008-06-30 08:37:13 +02:00
parent 4002b75e62
commit 23e9b43ce4

View file

@ -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)