[Xquartz-changes] [300] AppleSGLX/trunk/tests/simple/multisample_glx.c

source_changes at macosforge.org source_changes at macosforge.org
Mon Mar 9 19:21:17 PDT 2009


Revision: 300
          http://trac.macosforge.org/projects/xquartz/changeset/300
Author:   gstaplin at 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();
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/xquartz-changes/attachments/20090309/2ab0e58c/attachment.html>


More information about the Xquartz-changes mailing list