fixes for r300_tex.c from Aapo Tahkola
authorDave Airlie <airliedfreedesktop.org>
Thu, 20 Oct 2005 06:06:18 +0000 (06:06 +0000)
committerDave Airlie <airliedfreedesktop.org>
Thu, 20 Oct 2005 06:06:18 +0000 (06:06 +0000)
src/mesa/drivers/dri/r300/r300_tex.c

index 44368c28196b2dc159188b287e0df368db6a7a3b..73d16270e3220f85c7e50b8e94eef13ab89ed079 100644 (file)
@@ -220,10 +220,10 @@ static void r300SetTexFilter(r300TexObjPtr t, GLenum minf, GLenum magf)
                        t->filter |= R300_TX_MIN_FILTER_NEAREST_MIP_NEAREST;
                        break;
                case GL_NEAREST_MIPMAP_LINEAR:
-                       t->filter |= R300_TX_MIN_FILTER_LINEAR_MIP_NEAREST;
+                       t->filter |= R300_TX_MIN_FILTER_NEAREST_MIP_LINEAR;
                        break;
                case GL_LINEAR_MIPMAP_NEAREST:
-                       t->filter |= R300_TX_MIN_FILTER_NEAREST_MIP_LINEAR;
+                       t->filter |= R300_TX_MIN_FILTER_LINEAR_MIP_NEAREST;
                        break;
                case GL_LINEAR_MIPMAP_LINEAR:
                        t->filter |= R300_TX_MIN_FILTER_LINEAR_MIP_LINEAR;
@@ -951,9 +951,9 @@ static void r300TexEnv(GLcontext * ctx, GLenum target,
                                R200_STATECHANGE(rmesa, tf);
                                rmesa->hw.tf.cmd[TF_TFACTOR_0 + unit] =
                                    envColor;
-                       }
+                       }*/
                        break;
-               */}
+               }
 
        case GL_TEXTURE_LOD_BIAS_EXT:{
                        GLfloat bias, min;