aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2012-12-13 12:36:09 -0800
committerVinson Lee <vlee@freedesktop.org>2012-12-13 22:52:21 -0800
commit55502d0ef690613b00c3bcd6745bc9e1015587b7 (patch)
treee7e79b4ccad4f954809658e27a5f04a65c981da6
parenteeaa54b99a83ce62b19ad04a3474a51f22e7856c (diff)
getteximage-formats: Set pass to true for unsupported formats.
Fixes uninitialized scalar variable defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
-rw-r--r--tests/texturing/getteximage-formats.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/texturing/getteximage-formats.c b/tests/texturing/getteximage-formats.c
index 0e123388..93771dd5 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();
}