[Piglit] [PATCH] spec/arb_copy_buffer: Require OpenGL 1.5.

Vinson Lee vlee at vmware.com
Mon Dec 26 14:36:34 PST 2011


glBufferData is available only if the GL version is 1.5 or greater.

Signed-off-by: Vinson Lee <vlee at vmware.com>
---
 tests/spec/arb_copy_buffer/copy_buffer_coherency.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/tests/spec/arb_copy_buffer/copy_buffer_coherency.c b/tests/spec/arb_copy_buffer/copy_buffer_coherency.c
index cba3f2f..8781324 100644
--- a/tests/spec/arb_copy_buffer/copy_buffer_coherency.c
+++ b/tests/spec/arb_copy_buffer/copy_buffer_coherency.c
@@ -69,6 +69,10 @@ do_copy()
 void
 piglit_init(int argc, char *argv[])
 {
+	if (!GLEW_VERSION_1_5) {
+		printf("Requires OpenGL 1.5\n");
+		piglit_report_result(PIGLIT_SKIP);
+	}
 
 	piglit_require_extension("GL_ARB_vertex_buffer_object");
 	piglit_require_extension("GL_ARB_copy_buffer");
-- 
1.7.7.3



More information about the Piglit mailing list