Revision: 300 http://trac.macosforge.org/projects/xquartz/changeset/300 Author: gstaplin@apple.com Date: 2009-03-09 19:21:16 -0700 (Mon, 09 Mar 2009) Log Message: ----------- Enhanced the multisample_glx test a bit to try to diagnose the samples not matching the expected 16. Modified Paths: -------------- AppleSGLX/trunk/tests/simple/multisample_glx.c Modified: AppleSGLX/trunk/tests/simple/multisample_glx.c =================================================================== --- AppleSGLX/trunk/tests/simple/multisample_glx.c 2009-03-10 02:12:05 UTC (rev 299) +++ AppleSGLX/trunk/tests/simple/multisample_glx.c 2009-03-10 02:21:16 UTC (rev 300) @@ -147,6 +147,11 @@ printf("visinfo->visualid %lx\n", visinfo->visualid); + glXGetFBConfigAttrib(dpy, fbconfig[bestfbi], GLX_FBCONFIG_ID, &value); + + printf("fbconfig id 0x%x\n", value); + + attr.background_pixel = 0; attr.border_pixel = 0; attr.colormap = XCreateColormap(dpy, root, visinfo->visual, AllocNone); @@ -174,6 +179,8 @@ return EXIT_FAILURE; } + printf("GL_RENDERER %s\n", (char *) glGetString(GL_RENDERER)); + glEnable(GL_MULTISAMPLE); create_lists();