diff options
author | Brian <[email protected]> | 2008-02-12 17:07:27 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2008-02-12 17:07:27 -0700 |
commit | 48e223a0db85e83e180a49f3c3c7ea4101a86f40 (patch) | |
tree | abc9c391e416753b34389e2a6e82d179715f7660 /src | |
parent | be54b492d941db85873afc6cfaa478268eab98d8 (diff) |
gallium: clamp min_lod so it's never negative
Diffstat (limited to 'src')
-rw-r--r-- | 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 6241e70b550..92263cb6881 100644 --- 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). |