intel: Finish removing the fallback code for bug #16697.
authorEric Anholt <eric@anholt.net>
Thu, 5 Nov 2009 01:31:01 +0000 (17:31 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 6 Nov 2009 19:37:32 +0000 (11:37 -0800)
I fixed it properly as of 7216679c1998b49ff5b08e6b43f8d5779415bf54.

src/mesa/drivers/dri/intel/intel_mipmap_tree.c

index e082ebc..abb3024 100644 (file)
@@ -321,12 +321,8 @@ intel_miptree_match_image(struct intel_mipmap_tree *mt,
    struct intel_texture_image *intelImage = intel_texture_image(image);
    GLuint level = intelImage->level;
 
-   /* Images with borders are never pulled into mipmap trees. 
-    */
-   if (image->Border ||
-       ((image->_BaseFormat == GL_DEPTH_COMPONENT) &&
-        ((image->TexObject->WrapS == GL_CLAMP_TO_BORDER) ||
-         (image->TexObject->WrapT == GL_CLAMP_TO_BORDER)))) 
+   /* Images with borders are never pulled into mipmap trees. */
+   if (image->Border)
       return GL_FALSE;
 
    if (image->InternalFormat != mt->internal_format ||