r300g: fix glean/pointSprite using lodbias correction

This commit is contained in:
Marek Olšák
2010-05-08 19:51:48 +02:00
parent 71584d0cc7
commit ceafb391e6

View File

@@ -906,7 +906,7 @@ static void*
sampler->min_lod = MAX2((unsigned)state->min_lod, 0);
sampler->max_lod = MAX2((unsigned)ceilf(state->max_lod), 0);
lod_bias = CLAMP((int)(state->lod_bias * 32), -(1 << 9), (1 << 9) - 1);
lod_bias = CLAMP((int)(state->lod_bias * 32 + 1), -(1 << 9), (1 << 9) - 1);
sampler->filter1 |= lod_bias << R300_LOD_BIAS_SHIFT;