+ if ( ! window->Window.VisualInfo )
+ {
+ /*
+ * The "fgChooseVisual" returned a null meaning that the visual context is not available.
+ * Try a couple of variations to see if they will work.
+ */
+ if ( ! ( fgState.DisplayMode & GLUT_DOUBLE ) )
+ {
+ /*
+ * Single buffering--try it doubled
+ */
+ fgState.DisplayMode |= GLUT_DOUBLE ;
+ window->Window.VisualInfo = fgChooseVisual();
+ }
+
+ /*
+ * GLUT also checks for multi-sampling, but I don't see that anywhere else in FREEGLUT
+ * so I won't bother with it for the moment.
+ */
+ }
+