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