From: Etienne Clement Date: Wed, 14 Feb 2007 20:21:12 +0000 (-0700) Subject: test for POT before using sample_2d_linear_repeat() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1e2b46963595e02172b4d651cc8a219e9f5c8176;p=mesa.git test for POT before using sample_2d_linear_repeat() --- diff --git a/src/mesa/swrast/s_texfilter.c b/src/mesa/swrast/s_texfilter.c index f55e23422d4..b2c5574d95d 100644 --- a/src/mesa/swrast/s_texfilter.c +++ b/src/mesa/swrast/s_texfilter.c @@ -1196,7 +1196,9 @@ sample_linear_2d( GLcontext *ctx, GLuint i; struct gl_texture_image *image = tObj->Image[0][tObj->BaseLevel]; (void) lambda; - if (tObj->WrapS == GL_REPEAT && tObj->WrapT == GL_REPEAT) { + if (tObj->WrapS == GL_REPEAT && + tObj->WrapT == GL_REPEAT && + image->_IsPowerOfTwo) { for (i=0;i