[Piglit] [PATCH] arb_texture_buffer_object: Verify some behavior when the extenion isn't supported

Eric Anholt eric at anholt.net
Fri Jul 27 11:26:29 PDT 2012


Ian Romanick <idr at freedesktop.org> writes:

> From: Ian Romanick <ian.d.romanick at intel.com>
>
> If the extension is not supported, applications should not be able to
> bind to the texture target or the buffer object target.
>
> Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
> ---
> This currently fails on Mesa, and I'm working on a fix.  It's
> currently tangled in some other work, but a patch will go out in the
> next day or so.
>
>  .../arb_texture_buffer_object/CMakeLists.gl.txt    |    1 +
>  .../negative-unsupported.c                         |   62 ++++++++++++++++++++
>  2 files changed, 63 insertions(+), 0 deletions(-)
>  create mode 100644 tests/spec/arb_texture_buffer_object/negative-unsupported.c

missing all.tests.

> +void
> +piglit_init(int argc, char **argv)
> +{
> +	GLuint tex;
> +	GLuint bo;
> +	bool pass = true;
> +
> +	piglit_require_not_extension("GL_ARB_texture_buffer_object");

Also require < GL 3.1.
-------------- 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/20120727/49fca013/attachment.pgp>


More information about the Piglit mailing list