mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-26 18:40:33 +01:00
r300: Fix dumb mistake in LOD bias translation
This commit is contained in:
parent
4002b75e62
commit
23e9b43ce4
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue