st/mesa: Apply LOD bias from correct texture unit
Signed-off-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
committed by
Brian Paul
parent
8778bf221e
commit
d863bd7d7b
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user