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-pbo-readpixels-small.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-pbo-readpixels-small.c')
-rw-r--r-- | tests/fbo/fbo-pbo-readpixels-small.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/fbo/fbo-pbo-readpixels-small.c b/tests/fbo/fbo-pbo-readpixels-small.c index 919c9fe5f..c7730b2bb 100644 --- a/tests/fbo/fbo-pbo-readpixels-small.c +++ b/tests/fbo/fbo-pbo-readpixels-small.c @@ -68,7 +68,8 @@ make_fbo(GLuint *fbo, GLuint *tex) 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) { |