projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e01a03d
)
swrast: return (0,0,0,1) when sampling incomplete textures, not (0,0,0,0)
author
Brian Paul
<brianp@vmware.com>
Fri, 6 Feb 2009 17:47:31 +0000
(10:47 -0700)
committer
Brian Paul
<brianp@vmware.com>
Fri, 6 Feb 2009 17:47:31 +0000
(10:47 -0700)
Fixes piglit shaders/fp-incomplete-tex test.
src/mesa/swrast/s_fragprog.c
patch
|
blob
|
history
diff --git
a/src/mesa/swrast/s_fragprog.c
b/src/mesa/swrast/s_fragprog.c
index 58ef91ec010a35b5c81698069cdff29055892cf1..bbb784c46e861c187e47e2d7517c33774401a272 100644
(file)
--- a/
src/mesa/swrast/s_fragprog.c
+++ b/
src/mesa/swrast/s_fragprog.c
@@
-84,7
+84,8
@@
fetch_texel_lod( GLcontext *ctx, const GLfloat texcoord[4], GLfloat lambda,
swizzle_texel(rgba, color, texObj->_Swizzle);
}
else {
- color[0] = color[1] = color[2] = color[3] = 0.0F;
+ color[0] = color[1] = color[2] = 0.0F;
+ color[3] = 1.0F;
}
}
@@
-126,7
+127,8
@@
fetch_texel_deriv( GLcontext *ctx, const GLfloat texcoord[4],
swizzle_texel(rgba, color, texObj->_Swizzle);
}
else {
- color[0] = color[1] = color[2] = color[3] = 0.0F;
+ color[0] = color[1] = color[2] = 0.0F;
+ color[3] = 1.0F;
}
}