[Piglit] [PATCH 2/2] texture-integer: fix issue with GL_ALPHA_INTEGER_EXT swizzle
Martin Andersson
g02maran at gmail.com
Tue Aug 13 14:24:23 PDT 2013
Set value[0], value[1] and value[2] to zero to prevent negative results
in the bias computation.
---
tests/spec/gl-3.0/texture-integer.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/spec/gl-3.0/texture-integer.c b/tests/spec/gl-3.0/texture-integer.c
index ff2bef4..193ca6d 100644
--- a/tests/spec/gl-3.0/texture-integer.c
+++ b/tests/spec/gl-3.0/texture-integer.c
@@ -293,6 +293,7 @@ test_format(const struct format_info *info)
expected[0] = expected[1] = expected[2] = 0.0;
expected[3] = 0.25;
value[3] = value[0];
+ value[0] = value[1] = value[2] = 0.0;
break;
case GL_LUMINANCE_INTEGER_EXT:
expected[0] = expected[1] = expected[2] = 0.25;
--
1.8.3.4
More information about the Piglit
mailing list