XQuartz: Call setVisualConfigs in InitOutput, and only when GLXEXT is defined.

This commit is contained in:
George Staplin 2008-10-07 11:39:44 -06:00
parent 190a3d5e5d
commit 97173d4eda

View File

@ -229,8 +229,6 @@ static Bool DarwinAddScreen(int index, ScreenPtr pScreen, int argc, char **argv)
miSetPixmapDepths();
setVisualConfigs();
// machine independent screen init
// setup _Screen structure in pScreen
if (monitorResolution)
@ -602,6 +600,10 @@ void InitOutput( ScreenInfo *pScreenInfo, int argc, char **argv )
generation = serverGeneration;
}
#ifdef GLXEXT
setVisualConfigs();
#endif
// Discover screens and do mode specific initialization
QuartzInitOutput(argc, argv);