diff options
Diffstat (limited to 'tests/fbo/fbo-nodepth-test.c')
-rw-r--r-- | tests/fbo/fbo-nodepth-test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/fbo/fbo-nodepth-test.c b/tests/fbo/fbo-nodepth-test.c index 9e86b170b..834e1c60e 100644 --- a/tests/fbo/fbo-nodepth-test.c +++ b/tests/fbo/fbo-nodepth-test.c @@ -65,7 +65,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) { |