[Piglit] [PATCH] map_buffer_range_error_check: Require OpenGL 1.5.

Brian Paul brianp at vmware.com
Mon Jan 2 06:37:51 PST 2012


On 12/29/2011 06:21 PM, Vinson Lee wrote:
> glGenBuffers is available only if the GL version is 1.5 or greater.
>
> Signed-off-by: Vinson Lee<vlee at vmware.com>
> ---
>   .../map_buffer_range_error_check.c                 |    5 +++++
>   1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/tests/spec/arb_map_buffer_range/map_buffer_range_error_check.c b/tests/spec/arb_map_buffer_range/map_buffer_range_error_check.c
> index 9abb3f9..87b891e 100644
> --- a/tests/spec/arb_map_buffer_range/map_buffer_range_error_check.c
> +++ b/tests/spec/arb_map_buffer_range/map_buffer_range_error_check.c
> @@ -45,6 +45,11 @@ piglit_init(int argc, char *argv[])
>   	GLbitfield access = GL_MAP_READ_BIT | GL_MAP_WRITE_BIT;
>   	GLuint buffer;
>
> +	if (!GLEW_VERSION_1_5) {
> +		printf("Requires OpenGL 1.5\n");
> +		piglit_report_result(PIGLIT_SKIP);
> +	}
> +
>   	piglit_require_extension("GL_ARB_map_buffer_range");
>
>   	glGenBuffers(1,&buffer);

For this and the other patch:
Reviewed-by: Brian Paul <brianp at vmware.com>


More information about the Piglit mailing list