From 6ccd23b87b9d07ce01bb84d406b64fb18d37a33e Mon Sep 17 00:00:00 2001 From: Brian Date: Fri, 23 Nov 2007 09:14:27 -0700 Subject: [PATCH] need to check border width in sample_linear_2d() - fixes failed assertion in texwrap.c test --- src/mesa/swrast/s_texfilter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/swrast/s_texfilter.c b/src/mesa/swrast/s_texfilter.c index 91d207147e5..084d65f554a 100644 --- a/src/mesa/swrast/s_texfilter.c +++ b/src/mesa/swrast/s_texfilter.c @@ -1198,6 +1198,7 @@ sample_linear_2d( GLcontext *ctx, (void) lambda; if (tObj->WrapS == GL_REPEAT && tObj->WrapT == GL_REPEAT && + image->Border == 0 && image->_IsPowerOfTwo) { for (i=0;i