mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
need to check border width in sample_linear_2d() - fixes failed assertion in texwrap.c test
This commit is contained in:
parent
0fd679a190
commit
c14d969a69
1 changed files with 2 additions and 1 deletions
|
|
@ -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<n;i++) {
|
||||
sample_2d_linear_repeat(ctx, tObj, image, texcoords[i], rgba[i]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue