Revision: 150 http://trac.macosforge.org/projects/xquartz/changeset/150 Author: gstaplin@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;
participants (1)
-
source_changes@macosforge.org