[Piglit] [PATCH] map_buffer_range_error_check: Check return value of glGetError.
Vinson Lee
vlee at vmware.com
Mon Dec 5 23:14:10 PST 2011
Fixes Coverity unchecked return value defect.
Signed-off-by: Vinson Lee <vlee at vmware.com>
---
.../map_buffer_range_error_check.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tests/spec/arb_map_buffer_range/map_buffer_range_error_check.c b/tests/spec/arb_map_buffer_range/map_buffer_range_error_check.c
index 9abb3f9..ea1faad 100644
--- a/tests/spec/arb_map_buffer_range/map_buffer_range_error_check.c
+++ b/tests/spec/arb_map_buffer_range/map_buffer_range_error_check.c
@@ -50,7 +50,7 @@ piglit_init(int argc, char *argv[])
glGenBuffers(1, &buffer);
glBindBuffer(target, buffer);
glBufferData(target, 100, NULL, GL_STATIC_DRAW);
- glGetError();
+ assert(glGetError() == 0);
/*
* Test cases for checking GL_INVALID_VALUE error
--
1.7.7.3
More information about the Piglit
mailing list