From e4d41524a229aa1e0788668b28151125b9c6581e Mon Sep 17 00:00:00 2001 From: Aapo Tahkola Date: Tue, 25 Jan 2005 19:09:23 +0000 Subject: Fixes for clamp modes. --- src/mesa/drivers/dri/r300/r300_tex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/drivers/dri/r300/r300_tex.c') diff --git a/src/mesa/drivers/dri/r300/r300_tex.c b/src/mesa/drivers/dri/r300/r300_tex.c index 737db509a4..8ea9b7f6bd 100644 --- a/src/mesa/drivers/dri/r300/r300_tex.c +++ b/src/mesa/drivers/dri/r300/r300_tex.c @@ -178,7 +178,7 @@ static void r300SetTexMaxAnisotropy(r300TexObjPtr t, GLfloat max) t->filter &= ~R300_TX_MAX_ANISO_MASK; - if (max == 1.0) { + if (max <= 1.0) { t->filter |= R300_TX_MAX_ANISO_1_TO_1; } else if (max <= 2.0) { t->filter |= R300_TX_MAX_ANISO_2_TO_1; -- cgit v1.2.3