Fixes "Unchecked return value" defect reported by Coverity.
Signed-off-by: Vinson Lee <[email protected]>
---
tests/spec/gl-3.2/depth-tex-sampling.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/spec/gl-3.2/depth-tex-sampling.c
b/tests/spec/gl-3.2/depth-tex-sampling.c
index 32079c1..a7def6c 100644
--- a/tests/spec/gl-3.2/depth-tex-sampling.c
+++ b/tests/spec/gl-3.2/depth-tex-sampling.c
@@ -199,7 +199,7 @@ piglit_display(void)
piglit_present_results();
- piglit_check_gl_error(GL_NO_ERROR);
+ pass = piglit_check_gl_error(GL_NO_ERROR) && pass;
return pass ? PIGLIT_PASS : PIGLIT_FAIL;
}
--
1.8.3.2
_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit