diff options
author | Vinson Lee <vlee@freedesktop.org> | 2013-01-10 20:00:56 -0800 |
---|---|---|
committer | Vinson Lee <vlee@freedesktop.org> | 2013-01-10 23:29:45 -0800 |
commit | 1ff7d887e70fd2099052b38ee367e8567cc33d5f (patch) | |
tree | 1a7fe0e218812cbf9cefc4378d2432eccbc5fdc7 | |
parent | c85d6aec699c9f666dd003d6df5ea0dfe574120d (diff) |
stencil-wrap: Check and use results of all probed pixels.
Fixes dead assignment bugs reported by Clang Static Analyzer.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
-rw-r--r-- | tests/general/stencil-wrap.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/general/stencil-wrap.c b/tests/general/stencil-wrap.c index 86568427..b0f9c2d3 100644 --- a/tests/general/stencil-wrap.c +++ b/tests/general/stencil-wrap.c @@ -136,11 +136,11 @@ piglit_display(void) glColor3f(0.5, 0.5, 0.5); piglit_draw_rect(w * 9, start_y, w, h); - pass = piglit_probe_pixel_rgb(w * 1.5, piglit_height / 2, expected); - pass = piglit_probe_pixel_rgb(w * 3.5, piglit_height / 2, expected); - pass = piglit_probe_pixel_rgb(w * 5.5, piglit_height / 2, expected); - pass = piglit_probe_pixel_rgb(w * 7.5, piglit_height / 2, expected); - pass = piglit_probe_pixel_rgb(w * 9.5, piglit_height / 2, expected); + pass = piglit_probe_pixel_rgb(w * 1.5, piglit_height / 2, expected) && pass; + pass = piglit_probe_pixel_rgb(w * 3.5, piglit_height / 2, expected) && pass; + pass = piglit_probe_pixel_rgb(w * 5.5, piglit_height / 2, expected) && pass; + pass = piglit_probe_pixel_rgb(w * 7.5, piglit_height / 2, expected) && pass; + pass = piglit_probe_pixel_rgb(w * 9.5, piglit_height / 2, expected) && pass; piglit_present_results(); |