From: Brian Paul Date: Thu, 25 Aug 2005 03:05:10 +0000 (+0000) Subject: also check for texture border in sample_linear_2d() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9e385282fc51b5852bfcfa981d672173488cd5c5;p=mesa.git also check for texture border in sample_linear_2d() --- diff --git a/src/mesa/swrast/s_texture.c b/src/mesa/swrast/s_texture.c index c4ac9679ecf..c75d826d2c1 100644 --- a/src/mesa/swrast/s_texture.c +++ b/src/mesa/swrast/s_texture.c @@ -1,6 +1,6 @@ /* * Mesa 3-D graphics library - * Version: 6.3 + * Version: 6.4 * * Copyright (C) 1999-2005 Brian Paul All Rights Reserved. * @@ -1181,7 +1181,8 @@ sample_linear_2d( GLcontext *ctx, GLuint texUnit, struct gl_texture_image *image = tObj->Image[0][tObj->BaseLevel]; (void) texUnit; (void) lambda; - if (tObj->WrapS == GL_REPEAT && tObj->WrapT == GL_REPEAT) { + if (tObj->WrapS == GL_REPEAT && tObj->WrapT == GL_REPEAT + && image->Border == 0) { for (i=0;i