[Piglit] [PATCH] spec/arb_copy_buffer: Require OpenGL 1.5.
Brian Paul
brian.e.paul at gmail.com
Mon Dec 26 15:26:26 PST 2011
On Mon, Dec 26, 2011 at 3:36 PM, Vinson Lee <vlee at vmware.com> wrote:
> 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");
Reviewed-by: Brian Paul <brianp at vmare.com>
More information about the Piglit
mailing list