[Piglit] [PATCH] sync_api: Check return value of glGetError.
Vinson Lee
vlee at vmware.com
Mon Dec 5 23:20:01 PST 2011
Fixes Coverity unchecked return value defect.
Signed-off-by: Vinson Lee <vlee at vmware.com>
---
tests/general/sync_api.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tests/general/sync_api.c b/tests/general/sync_api.c
index cd9d8c3..e2f9dc0 100644
--- a/tests/general/sync_api.c
+++ b/tests/general/sync_api.c
@@ -108,7 +108,7 @@ piglit_display(void)
glVertex3f( 0.0, 0.9, -30.0);
glEnd();
- glGetError();
+ assert(glGetError() == 0);
sync = glFenceSync(GL_SYNC_GPU_COMMANDS_COMPLETE, 0);
FAIL_ON_ERROR("glFenceSync");
--
1.7.7.3
More information about the Piglit
mailing list