summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Borca <[email protected]>2004-08-30 08:43:26 +0000
committerDaniel Borca <[email protected]>2004-08-30 08:43:26 +0000
commitd4462dc975c5e542e6feb3f37925eb2e65f7099c (patch)
tree3d5f9d3c1332769b21d42f0e694fc25aa153fb11 /src
parentd17c1769cab04cc6f78f28e66d461056db7b94ef (diff)
clamp lodbias
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/tdfx/tdfx_render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/tdfx/tdfx_render.c b/src/mesa/drivers/dri/tdfx/tdfx_render.c
index dc3f7f69dda..1c552894699 100644
--- a/src/mesa/drivers/dri/tdfx/tdfx_render.c
+++ b/src/mesa/drivers/dri/tdfx/tdfx_render.c
@@ -501,7 +501,7 @@ static void uploadTextureParams( tdfxContextPtr fxMesa )
fxMesa->Glide.grTexClampMode(GR_TMU0 + unit, p->sClamp, p->tClamp);
fxMesa->Glide.grTexFilterMode(GR_TMU0 + unit, p->minFilt, p->magFilt);
fxMesa->Glide.grTexMipMapMode(GR_TMU0 + unit, p->mmMode, p->LODblend);
- fxMesa->Glide.grTexLodBiasValue(GR_TMU0 + unit, p->LodBias);
+ fxMesa->Glide.grTexLodBiasValue(GR_TMU0 + unit, CLAMP(p->LodBias, -8, 7.75));
}
}