diff options
author | Fabian Bieler <[email protected]> | 2011-03-25 11:04:41 +0100 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-04-05 09:07:07 -0600 |
commit | d863bd7d7baa0a71529f195b0025d57b9d65089a (patch) | |
tree | 52924e3e75c4d2d60e6725d4d0fc3666874a5ff3 /src | |
parent | 8778bf221e90e9b59caad02ab72a0a0edcfe2451 (diff) |
st/mesa: Apply LOD bias from correct texture unit
Signed-off-by: Brian Paul <[email protected]>
Diffstat (limited to 'src')
-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 474cbd5897d..96bdc7f331a 100644 --- a/src/mesa/state_tracker/st_atom_sampler.c +++ b/src/mesa/state_tracker/st_atom_sampler.c @@ -163,7 +163,7 @@ update_samplers(struct st_context *st) if (texobj->Target != GL_TEXTURE_RECTANGLE_ARB) sampler->normalized_coords = 1; - sampler->lod_bias = st->ctx->Texture.Unit[su].LodBias; + sampler->lod_bias = st->ctx->Texture.Unit[texUnit].LodBias; sampler->min_lod = texobj->BaseLevel + texobj->MinLod; if (sampler->min_lod < texobj->BaseLevel) |