projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fd679a
)
need to check border width in sample_linear_2d() - fixes failed assertion in texwrap...
author
Brian
<brian.paul@tungstengraphics.com>
Fri, 23 Nov 2007 16:14:39 +0000
(09:14 -0700)
committer
Brian
<brian.paul@tungstengraphics.com>
Fri, 23 Nov 2007 16:14:39 +0000
(09:14 -0700)
src/mesa/swrast/s_texfilter.c
patch
|
blob
|
history
diff --git
a/src/mesa/swrast/s_texfilter.c
b/src/mesa/swrast/s_texfilter.c
index 1a779c800ef2639e933b7b92906acf40c9f7d4b1..a5594ac6232dc64b2f7ba9ef2bed9acbce979e9f 100644
(file)
--- 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<n;i++) {
sample_2d_linear_repeat(ctx, tObj, image, texcoords[i], rgba[i]);
}