[Piglit] [PATCH] vao-element-array-buffer: Require OpenGL 1.5.
Vinson Lee
vlee at vmware.com
Mon Dec 26 14:18:46 PST 2011
glGenBuffers is available only if the GL version is 1.5 or greater.
Signed-off-by: Vinson Lee <vlee at vmware.com>
---
tests/general/vao-element-array-buffer.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/tests/general/vao-element-array-buffer.c b/tests/general/vao-element-array-buffer.c
index 1913866..6079e1f 100644
--- a/tests/general/vao-element-array-buffer.c
+++ b/tests/general/vao-element-array-buffer.c
@@ -68,6 +68,11 @@ piglit_init(int argc, char **argv)
};
GLubyte indices[] = {0, 1, 2, 3};
+ if (!GLEW_VERSION_1_5) {
+ printf("Requires OpenGL 1.5\n");
+ piglit_report_result(PIGLIT_SKIP);
+ }
+
piglit_require_extension("GL_ARB_vertex_array_object");
glClearColor(0, 0, 0, 1);
--
1.7.7.3
More information about the Piglit
mailing list