mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 16:40:13 +01:00
gallium: clamp min_lod so it's never negative
This commit is contained in:
parent
be54b492d9
commit
48e223a0db
1 changed files with 1 additions and 1 deletions
|
|
@ -147,7 +147,7 @@ update_samplers(struct st_context *st)
|
|||
|
||||
sampler.lod_bias = st->ctx->Texture.Unit[su].LodBias;
|
||||
#if 1
|
||||
sampler.min_lod = texobj->MinLod;
|
||||
sampler.min_lod = (texobj->MinLod) < 0.0 ? 0.0 : texobj->MinLod;
|
||||
sampler.max_lod = texobj->MaxLod;
|
||||
#else
|
||||
/* min/max lod should really be as follows (untested).
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue