[Piglit] [PATCH] getteximage-formats: compressed variable is not initialized in the special case

Morgan Armand morgan.devel at gmail.com
Thu Jan 19 13:24:45 PST 2012


---
 tests/texturing/getteximage-formats.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/tests/texturing/getteximage-formats.c b/tests/texturing/getteximage-formats.c
index 1488a9d..a69dbe6 100644
--- a/tests/texturing/getteximage-formats.c
+++ b/tests/texturing/getteximage-formats.c
@@ -176,6 +176,7 @@ compute_expected_color(const struct format_desc *fmt,
 		texel[1] = ubyte_to_float(upperRightTexel[1], bits[1]);
 		texel[2] = ubyte_to_float(upperRightTexel[2], bits[2]);
 		texel[3] = 1.0;
+		compressed = GL_FALSE;
 	}
 	else {
 		GLint r, g, b, a, l, i;
-- 
1.7.7.1.msysgit.0



More information about the Piglit mailing list