diff options
author | Juliet fru <julietfru@gmail.com> | 2014-10-20 21:26:20 +0100 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2014-10-21 14:37:07 -0600 |
commit | ad8bd91a3e2fd653afa3fc90e061965d07c7d26f (patch) | |
tree | 3f2c3187847b0d8e2655a22d7bc52d6c7b228948 /tests/fbo/fbo-luminance-alpha.c | |
parent | a636a3610d7cd8d59986e547bde52cfcc3fb7dab (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.c | 3 |
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) { |