From: Daniel Borca Date: Mon, 30 Aug 2004 08:43:26 +0000 (+0000) Subject: clamp lodbias X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d4462dc975c5e542e6feb3f37925eb2e65f7099c;p=mesa.git clamp lodbias --- 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)); } }