mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
also check for texture border in sample_linear_2d()
This commit is contained in:
parent
5d7c486d90
commit
9e385282fc
1 changed files with 3 additions and 2 deletions
|
|
@ -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<n;i++) {
|
||||
sample_2d_linear_repeat(ctx, tObj, image, texcoords[i], rgba[i]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue