mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
st/mesa: Apply LOD bias from correct texture unit
Signed-off-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
8778bf221e
commit
d863bd7d7b
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue