From 5d5db24a26415cdec4b3d3f2a92bae7112c9f884 Mon Sep 17 00:00:00 2001 From: Fabian Bieler Date: Fri, 25 Mar 2011 11:06:01 +0100 Subject: [PATCH] st/mesa: Apply LOD from texture object Signed-off-by: Brian Paul --- src/mesa/state_tracker/st_atom_sampler.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_atom_sampler.c b/src/mesa/state_tracker/st_atom_sampler.c index 96bdc7f331a..5f1849dcd83 100644 --- a/src/mesa/state_tracker/st_atom_sampler.c +++ b/src/mesa/state_tracker/st_atom_sampler.c @@ -163,7 +163,8 @@ update_samplers(struct st_context *st) if (texobj->Target != GL_TEXTURE_RECTANGLE_ARB) sampler->normalized_coords = 1; - sampler->lod_bias = st->ctx->Texture.Unit[texUnit].LodBias; + sampler->lod_bias = st->ctx->Texture.Unit[texUnit].LodBias + + texobj->LodBias; sampler->min_lod = texobj->BaseLevel + texobj->MinLod; if (sampler->min_lod < texobj->BaseLevel) -- 2.30.2