summaryrefslogtreecommitdiff
path: root/tests/fbo/fbo-copyteximage-simple.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fbo/fbo-copyteximage-simple.c')
-rw-r--r--tests/fbo/fbo-copyteximage-simple.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/fbo/fbo-copyteximage-simple.c b/tests/fbo/fbo-copyteximage-simple.c
index 511b97b69..4aefb29d0 100644
--- a/tests/fbo/fbo-copyteximage-simple.c
+++ b/tests/fbo/fbo-copyteximage-simple.c
@@ -67,7 +67,8 @@ create_fbo(void)
0,
GL_RGBA, GL_UNSIGNED_BYTE, NULL);
- assert(glGetError() == 0);
+ if (!piglit_check_gl_error(GL_NO_ERROR))
+ piglit_report_result(PIGLIT_FAIL);
glGenFramebuffersEXT(1, &fb);
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fb);
@@ -76,7 +77,8 @@ create_fbo(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) {