[Piglit] [PATCH v2] getteximage-formats: Set pass to true for unsupported formats.
Vinson Lee
vlee at freedesktop.org
Thu Dec 13 12:42:01 PST 2012
Fixes uninitialized scalar variable defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
tests/texturing/getteximage-formats.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/texturing/getteximage-formats.c b/tests/texturing/getteximage-formats.c
index 0e12338..93771dd 100644
--- a/tests/texturing/getteximage-formats.c
+++ b/tests/texturing/getteximage-formats.c
@@ -472,6 +472,8 @@ piglit_display(void)
pass = test_format(set, &set->format[format_index]);
}
else {
+ /* unsupported format - not a failure */
+ pass = GL_TRUE;
glClear(GL_COLOR_BUFFER_BIT);
piglit_present_results();
}
--
1.8.0.1
More information about the Piglit
mailing list