From: Brian Date: Fri, 23 Nov 2007 16:14:39 +0000 (-0700) Subject: need to check border width in sample_linear_2d() - fixes failed assertion in texwrap... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c14d969a69d7b9a060c6701d3f18c51eabc56635;p=mesa.git need to check border width in sample_linear_2d() - fixes failed assertion in texwrap.c test --- diff --git a/src/mesa/swrast/s_texfilter.c b/src/mesa/swrast/s_texfilter.c index 1a779c800ef..a5594ac6232 100644 --- a/src/mesa/swrast/s_texfilter.c +++ b/src/mesa/swrast/s_texfilter.c @@ -1191,7 +1191,8 @@ sample_linear_2d( GLcontext *ctx, (void) lambda; if (tObj->WrapS == GL_REPEAT && tObj->WrapT == GL_REPEAT && - image->_IsPowerOfTwo) { + image->_IsPowerOfTwo && + image->Border == 0) { for (i=0;i