[Piglit] [PATCH] copybuffersubdata: test GL_ARB_copy_buffer extension

Eric Anholt eric at anholt.net
Thu Jan 5 09:07:45 PST 2012


> +add_plain_test(general, 'copybuffersubdata')

concurrent?  Also, please put it under the spec category.  Yeah, it's a
pain to add all that cmake cruft for a new extension.

> +static GLboolean

stdbool is available, you can just type bool these days :)


> +enum piglit_result
> +piglit_display(void)
> +{
> +	return PIGLIT_PASS;
> +}

we usually put FAIL in the uncalled display func I think.

> +void
> +piglit_init(int argc, char **argv)
> +{
> +	if (!piglit_is_extension_supported("GL_ARB_copy_buffer"))
> +		piglit_report_result(PIGLIT_SKIP);

piglit_require_extension().
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20120105/15b95dfe/attachment.pgp>


More information about the Piglit mailing list