[Xquartz-changes] [150] AppleSGLX/trunk/apple_visual.c

source_changes at macosforge.org source_changes at macosforge.org
Mon Feb 16 14:49:35 PST 2009


Revision: 150
          http://trac.macosforge.org/projects/xquartz/changeset/150
Author:   gstaplin at apple.com
Date:     2009-02-16 14:49:35 -0800 (Mon, 16 Feb 2009)
Log Message:
-----------
Add support for offscreen rendering to the pixel format obj.

This will need to be rethought so that it's only enabled for GLXPixmaps.

Modified Paths:
--------------
    AppleSGLX/trunk/apple_visual.c

Modified: AppleSGLX/trunk/apple_visual.c
===================================================================
--- AppleSGLX/trunk/apple_visual.c	2009-02-16 22:47:06 UTC (rev 149)
+++ AppleSGLX/trunk/apple_visual.c	2009-02-16 22:49:35 UTC (rev 150)
@@ -45,13 +45,13 @@
     GLint vsref = 0;
     CGLError error = 0;
 
-#if 0
-    /*TODO make this be based on the preferences.*/
+#if 1
+    /*TODO we only need this sometimes -- for GLXPixmaps!*/
     attr[numattr++] = kCGLPFAOffScreen;
     
     attr[numattr++] = kCGLPFAColorSize;
     attr[numattr++] = 32;
-#else
+#endif
 
     if(c->stereoMode) 
 	attr[numattr++] = kCGLPFAStereo;
@@ -90,7 +90,6 @@
 	attr[numattr++] = kCGLPFASamples;
 	attr[numattr++] = c->samples;
     }
-#endif
     
     attr[numattr++] = 0;
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/xquartz-changes/attachments/20090216/0504668b/attachment-0001.html>


More information about the Xquartz-changes mailing list