projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ef9df6
)
gallium: clamp min_lod so it's never negative
author
Brian
<brian.paul@tungstengraphics.com>
Wed, 13 Feb 2008 00:07:27 +0000
(17:07 -0700)
committer
Ben Skeggs
<skeggsb@gmail.com>
Fri, 15 Feb 2008 02:51:12 +0000
(13:51 +1100)
src/mesa/state_tracker/st_atom_sampler.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_atom_sampler.c
b/src/mesa/state_tracker/st_atom_sampler.c
index 6241e70b5507ca7c5984e4b9dc9e79db19241c6f..92263cb6881000ae7341b61237d8846cbdf92a9a 100644
(file)
--- a/
src/mesa/state_tracker/st_atom_sampler.c
+++ b/
src/mesa/state_tracker/st_atom_sampler.c
@@
-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).