summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2001-03-23 18:53:26 +0000
committerBrian Paul <[email protected]>2001-03-23 18:53:26 +0000
commit4672b2d88cac92d1dde4909b16b7477e7793d17f (patch)
tree23670fe7138986adcea3c4940766b03e7357b4cf /src
parentb3678f108044302dc6f50a14568d47c1b345df9b (diff)
fixed Min/Max lod clamp bug
Diffstat (limited to 'src')
-rw-r--r--src/mesa/swrast/s_texture.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/swrast/s_texture.c b/src/mesa/swrast/s_texture.c
index c4512480d53..10349e4ced1 100644
--- a/src/mesa/swrast/s_texture.c
+++ b/src/mesa/swrast/s_texture.c
@@ -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;