[Piglit] [PATCH] map_buffer_range_error_check: Require OpenGL 1.5.
Vinson Lee
vlee at vmware.com
Thu Dec 29 17:21:03 PST 2011
glGenBuffers is available only if the GL version is 1.5 or greater.
Signed-off-by: Vinson Lee <vlee at vmware.com>
---
.../map_buffer_range_error_check.c | 5 +++++
1 files changed, 5 insertions(+), 0 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..87b891e 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
@@ -45,6 +45,11 @@ piglit_init(int argc, char *argv[])
GLbitfield access = GL_MAP_READ_BIT | GL_MAP_WRITE_BIT;
GLuint buffer;
+ if (!GLEW_VERSION_1_5) {
+ printf("Requires OpenGL 1.5\n");
+ piglit_report_result(PIGLIT_SKIP);
+ }
+
piglit_require_extension("GL_ARB_map_buffer_range");
glGenBuffers(1, &buffer);
--
1.7.7.3
More information about the Piglit
mailing list