diff options
author | Vinson Lee <vlee@freedesktop.org> | 2015-01-08 15:20:03 -0800 |
---|---|---|
committer | Vinson Lee <vlee@freedesktop.org> | 2015-01-16 16:46:36 -0800 |
commit | 682ffec7826b4103ebbfb3aa0f18d671062e18ee (patch) | |
tree | f7c15c635646e69f316547319a734df959dd54f1 | |
parent | ccaa72cc94bfce0827a8ac10afce3c1c26f1e53e (diff) |
arb_get_program_binary: Check piglit_check_gl_error results.
Fix dead assignment bugs reported by Clang Static Analyzer.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Chad Versace <chad.versace@intel.com>
-rw-r--r-- | tests/spec/arb_get_program_binary/retrievable_hint.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/spec/arb_get_program_binary/retrievable_hint.c b/tests/spec/arb_get_program_binary/retrievable_hint.c index 2cea63316..8283c5bdc 100644 --- a/tests/spec/arb_get_program_binary/retrievable_hint.c +++ b/tests/spec/arb_get_program_binary/retrievable_hint.c @@ -111,10 +111,10 @@ piglit_init(int argc, char **argv) */ glProgramParameteri(prog, GL_PROGRAM_BINARY_RETRIEVABLE_HINT, GL_TRUE); - got_error = piglit_check_gl_error(0); + pass = piglit_check_gl_error(0) && pass; glGetProgramiv(prog, GL_PROGRAM_BINARY_RETRIEVABLE_HINT, &value); - got_error = piglit_check_gl_error(0); + pass = piglit_check_gl_error(0) && pass; if (value != 0) { fprintf(stderr, @@ -124,10 +124,10 @@ piglit_init(int argc, char **argv) } glLinkProgram(prog); - got_error = piglit_check_gl_error(0); + pass = piglit_check_gl_error(0) && pass; glGetProgramiv(prog, GL_PROGRAM_BINARY_RETRIEVABLE_HINT, &value); - got_error = piglit_check_gl_error(0); + pass = piglit_check_gl_error(0) && pass; if (value != GL_TRUE) { fprintf(stderr, |