summaryrefslogtreecommitdiff
path: root/tests/fbo/fbo-luminance-alpha.c
diff options
context:
space:
mode:
authorJuliet fru <julietfru@gmail.com>2014-10-20 21:26:20 +0100
committerBrian Paul <brianp@vmware.com>2014-10-21 14:37:07 -0600
commitad8bd91a3e2fd653afa3fc90e061965d07c7d26f (patch)
tree3f2c3187847b0d8e2655a22d7bc52d6c7b228948 /tests/fbo/fbo-luminance-alpha.c
parenta636a3610d7cd8d59986e547bde52cfcc3fb7dab (diff)
Replaced assert(glGetError()) with gl_check_gl_error()
Report PIGLIT_FAIL if there's an unexpected error. Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'tests/fbo/fbo-luminance-alpha.c')
-rw-r--r--tests/fbo/fbo-luminance-alpha.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/fbo/fbo-luminance-alpha.c b/tests/fbo/fbo-luminance-alpha.c
index 8ece65348..e68ff6ff4 100644
--- a/tests/fbo/fbo-luminance-alpha.c
+++ b/tests/fbo/fbo-luminance-alpha.c
@@ -77,7 +77,8 @@ piglit_display(void)
GL_TEXTURE_2D,
tex,
0);
- assert(glGetError() == 0);
+ if (!piglit_check_gl_error(GL_NO_ERROR))
+ piglit_report_result(PIGLIT_FAIL);
status = glCheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT);
if (status != GL_FRAMEBUFFER_COMPLETE_EXT) {