[Piglit] [PATCH 1/2] glx-close-display: Fix GLX_DOUBLEBUFFER attrib.

jfonseca at vmware.com jfonseca at vmware.com
Fri Nov 14 06:57:15 PST 2014


From: José Fonseca <jfonseca at vmware.com>

https://www.opengl.org/sdk/docs/man2/xhtml/glXChooseFBConfig.xml states
that

  "GLX_DOUBLEBUFFER Must be followed by True or False."

No idea how this ever passed given the buffer overflow that ensued.
---
 tests/glx/glx-close-display.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/glx/glx-close-display.c b/tests/glx/glx-close-display.c
index 7a2c71f..946f1f3 100644
--- a/tests/glx/glx-close-display.c
+++ b/tests/glx/glx-close-display.c
@@ -48,7 +48,7 @@ isDirectRendering(void)
 	int attribList[] = {
 		GLX_DRAWABLE_TYPE, GLX_USE_GL,
 		GLX_RENDER_TYPE, GLX_USE_GL,
-		GLX_DOUBLEBUFFER,
+		GLX_DOUBLEBUFFER, True,
 		0
 	};
 	int nitems = 0;
-- 
2.1.1



More information about the Piglit mailing list