[Piglit] [PATCH] map_buffer_range_test: Require OpenGL 1.5.
Vinson Lee
vlee at vmware.com
Thu Dec 29 17:26:40 PST 2011
glBufferData is available only if the GL version is 1.5 or greater.
Signed-off-by: Vinson Lee <vlee at vmware.com>
---
.../arb_map_buffer_range/map_buffer_range_test.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/tests/spec/arb_map_buffer_range/map_buffer_range_test.c b/tests/spec/arb_map_buffer_range/map_buffer_range_test.c
index 12b1839..db78241 100644
--- a/tests/spec/arb_map_buffer_range/map_buffer_range_test.c
+++ b/tests/spec/arb_map_buffer_range/map_buffer_range_test.c
@@ -61,6 +61,11 @@ piglit_init(int argc, char *argv[])
int i;
bool ret;
+ if (!GLEW_VERSION_1_5) {
+ printf("Requires OpenGL 1.5\n");
+ piglit_report_result(PIGLIT_SKIP);
+ }
+
piglit_require_extension("GL_ARB_map_buffer_range");
for (i = 0; i < sizeof(data); i++) {
--
1.7.7.3
More information about the Piglit
mailing list