[Piglit] [PATCH 1/2] glx-create-new-context-bad-1: New test for a glXCreateNewContext() error.

Brian Paul brian.e.paul at gmail.com
Fri Feb 4 16:17:28 PST 2011


This test is failing for me with Mesa and NVIDIA drivers:

$ bin/glx-create-new-context-bad-1 -auto
glx-create-new-context-bad-1:
/home/brian/projects/piglit/tests/glx/glx-create-new-context-bad-1.c:81:
main: Assertion `nconfigs > 0' failed.
Aborted (core dumped)

I think your attrib array to glXChooseFBConfig() is wrong.  Try this:

	int attrib[] = {
		GLX_RED_SIZE, 1,
		GLX_GREEN_SIZE, 1,
		GLX_BLUE_SIZE, 1,
                GLX_DOUBLEBUFFER, 1,
		None
	};

All attributes are name/value pairs and GLX_RGBA is not valid.  You
could specify GLX_RENDER_TYPE instead, but the default is GLX_RGBA_BIT
anyway.

-Brian


More information about the Piglit mailing list