freeglut_assert_ready;
/*
- * Save the window's single- or double-buffering state
- */
- window->Window.DoubleBuffered = ( fgState.DisplayMode & GLUT_DOUBLE ) ? 1 : 0 ;
-
- /*
* Here we are upon the stage. Have the visual selected.
*/
window->Window.VisualInfo = fgChooseVisual();
# endif
}
- /*
- * If it's not double-buffered, make sure the rendering is done to the front buffer.
- */
- if ( ! window->Window.DoubleBuffered )
- {
- glDrawBuffer ( GL_FRONT ) ;
- glReadBuffer ( GL_FRONT ) ;
- }
-
#elif TARGET_HOST_WIN32
WNDCLASS wc;
#endif
/*
+ * Save the window's single- or double-buffering state
+ */
+ window->Window.DoubleBuffered = ( fgState.DisplayMode & GLUT_DOUBLE ) ? 1 : 0 ;
+
+ /*
+ * If it's not double-buffered, make sure the rendering is done to the front buffer.
+ */
+ if ( ! window->Window.DoubleBuffered )
+ {
+ glDrawBuffer ( GL_FRONT ) ;
+ glReadBuffer ( GL_FRONT ) ;
+ }
+
+ /*
* Set the newly created window as the current one
*/
fgSetWindow( window );