r3xx/r5xx: Don't force aniso.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Sat, 14 Jun 2008 11:37:09 +0000 (04:37 -0700)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Sat, 14 Jun 2008 11:37:09 +0000 (04:37 -0700)
*Pulls paper bag down over head*

src/mesa/drivers/dri/r300/r300_tex.c

index 2c3c28e63865692713a2dfc5ae0adc2fdc75183c..16321af7d4606b60f65939a09256ef77cdf42b18 100644 (file)
@@ -193,7 +193,7 @@ static void r300SetTexFilter(r300TexObjPtr t, GLenum minf, GLenum magf, GLfloat
         * When anisotropic filtering is enabled, we override min and mag
         * filter settings completely. This includes driconf's settings.
         */
-       if (anisotropy >= 2.0) {
+       if (anisotropy >= 2.0 && (minf != GL_NEAREST) && (magf != GL_NEAREST)) {
                t->filter |= R300_TX_MAG_FILTER_ANISO
                        | R300_TX_MIN_FILTER_ANISO
                        | R300_TX_MIN_FILTER_MIP_LINEAR