fixed Min/Max lod clamp bug
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 23 Mar 2001 18:53:26 +0000 (18:53 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 23 Mar 2001 18:53:26 +0000 (18:53 +0000)
src/mesa/swrast/s_texture.c

index c4512480d538b23ef49e8c3cd735e4fbb4305721..10349e4ced1e966b85004aece104f2208190a40e 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: s_texture.c,v 1.18 2001/03/22 04:54:58 brianp Exp $ */
+/* $Id: s_texture.c,v 1.19 2001/03/23 18:53:26 brianp Exp $ */
 
 /*
  * Mesa 3-D graphics library
@@ -2664,8 +2664,9 @@ _swrast_texture_fragments( GLcontext *ctx, GLuint texUnit, GLuint n,
            }
         }
 
-         if (textureUnit->_Current->MinLod != -1000.0
-             || textureUnit->_Current->MaxLod != 1000.0) {
+         if ((textureUnit->_Current->MinLod != -1000.0
+              || textureUnit->_Current->MaxLod != 1000.0)
+             && lambda) {
             /* apply LOD clamping to lambda */
             const GLfloat min = textureUnit->_Current->MinLod;
             const GLfloat max = textureUnit->_Current->MaxLod;