diff options
author | Brian Paul <[email protected]> | 2008-05-03 08:58:44 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-05-03 08:58:44 -0600 |
commit | 3668d20a9f382a174e002dc9b226710bdd983992 (patch) | |
tree | 11af5ff086e8096ffb7d3d9616f16209f4bcf765 | |
parent | 6e004e973bcc5b789ee3f70b70f5d728c8b8ea71 (diff) |
gallium: fix computation of sampler->min_lod
The texture BaseLevel is accounted for in texture layout so it doesn't factor
in here. May also need to adjust max_lod...
-rw-r--r-- | src/mesa/state_tracker/st_atom_sampler.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_atom_sampler.c b/src/mesa/state_tracker/st_atom_sampler.c index 7515bb30cc7..b020d435056 100644 --- a/src/mesa/state_tracker/st_atom_sampler.c +++ b/src/mesa/state_tracker/st_atom_sampler.c @@ -148,7 +148,7 @@ update_samplers(struct st_context *st) sampler->normalized_coords = 1; sampler->lod_bias = st->ctx->Texture.Unit[su].LodBias; - sampler->min_lod = MAX2(texobj->BaseLevel, texobj->MinLod); + sampler->min_lod = MAX2(0, texobj->MinLod); sampler->max_lod = MIN2(texobj->MaxLevel, texobj->MaxLod); sampler->border_color[0] = texobj->BorderColor[RCOMP]; |