summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r300/r300_tex.c
diff options
context:
space:
mode:
authorAapo Tahkola <aet@rasterburn.org>2005-01-25 19:09:23 +0000
committerAapo Tahkola <aet@rasterburn.org>2005-01-25 19:09:23 +0000
commite4d41524a229aa1e0788668b28151125b9c6581e (patch)
tree4d58438d1c2ff27f8a65127adf21c15549233e8a /src/mesa/drivers/dri/r300/r300_tex.c
parentf106493d8b9ee3575a0eea8a33eab1c22f2f3abf (diff)
Fixes for clamp modes.
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_tex.c')
-rw-r--r--src/mesa/drivers/dri/r300/r300_tex.c2
1 files changed, 1 insertions, 1 deletions
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;