Commit Graph

6 Commits

Author SHA1 Message Date
George Peter Staplin
f527381eea XQuartz: GL: Add capability detection for depth buffers, and multisampling.
GL/capabilities.c: Add handleDepthModes(), and extend
handleRendererDescription() for the various depth and multisampling flags.

Add initialization of the new config options to initConfig().

GL/capabilities.h: Add depth and multisample config members.

GL/visualConfigs.c: Add depth and multisampling support to the visual config
setup.
2008-11-04 12:53:12 -07:00
George Peter Staplin
1e5f63f15e XQuartz: GL: Work around problems with really deep visuals.
GL/capabilities.c: #if 0 (for now) any capabilities above 8 bits per channel,
because they introduce drawing problems.

GL/indirect.c: Comment out some visual setup code that shouldn't be running, and
actually seemed to cause some problems.  The current visualConfigs.c code seems
to do a reasonable job of setting up visuals for XQuartz.

GL/visualConfigs.c: Make use of the proper visual .class.   Eliminate depth 0.
It seems we really just want 24 for now, and 0 I think was a flaw in the original
code.
2008-11-03 19:59:11 -07:00
George Peter Staplin
fe35a36390 XQuartz: GL: Fix several error handling mistakes in handleRenderDescriptions, that were leftover before the final code evolved. 2008-10-24 19:12:05 -06:00
George Peter Staplin
98a084ce9c XQuartz: GL: Add feature detection of color sizes, and accum sizes.
This gives us a *lot* more visuals, and they should be more accurate.
Some of the visuals may have been wrong before.  This may enable more
OpenGL programs to behave correctly.

I also suspect libGL needs a little work to handle some of these correctly.
2008-10-24 18:18:58 -06:00
George Staplin
190a3d5e5d XQuartz: GL: Add the proper license information to the new files, and add more commentary to setVisualConfigs(). 2008-10-07 11:31:48 -06:00
George Staplin
fc86f9e448 XQuartz: GL: Provide code for getting the capabilities of the underlying system's CGL.
Add a setVisualConfigs that is called before the fbScreenInit, to setup the __GLXvisualConfigs.
2008-10-06 18:01:23 -06:00