Mesa (7.10): st/mesa: Apply LOD bias from correct texture unit

Brian Paul brianp at kemper.freedesktop.org
Tue Apr 5 08:12:48 PDT 2011


Module: Mesa
Branch: 7.10
Commit: e17ac39d3849eb0206b711d21f56d3f738a13cc4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e17ac39d3849eb0206b711d21f56d3f738a13cc4

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Apr  5 09:10:26 2011 -0600

st/mesa: Apply LOD bias from correct texture unit

Signed-off-by: Brian Paul <brianp at vmware.com>
(cherry picked from commit d863bd7d7baa0a71529f195b0025d57b9d65089a)

---

 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 474cbd5..96bdc7f 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)



More information about the mesa-commit mailing list