[Piglit] [PATCH] add test for initial texture state

Eric Anholt eric at anholt.net
Fri May 4 12:06:28 PDT 2012


On Tue, 1 May 2012 19:04:19 -0400, nobled <nobled at dreamwidth.org> wrote:
> Current Mesa fails to produce GL_INVALID_ENUM in glGetTexLevelParameteriv
> and segfaults when passed NULL.
> ---
> It's kind of pointless to pass null to a glGet* function like this,
> but I couldn't find
> any language in the spec about ignoring NULL pointers, which seems like the
> sane thing to do.

You should probably just check for gl 1.2 and skip the GL_EXT_texture
and GL_EXT_texture_object checks.  It's not like those paths of the test
have been tested, or that anyone would care about them, right?

(When reviewing, I thought GL_EXT_texture was a typo of some other
intended extension, because I'd never even heard of it, since it's
always been supported while I've been around).
-------------- 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/20120504/5e93ebda/attachment.pgp>


More information about the Piglit mailing list