- /*
- * Make sure the current context is flushed
- */
- glFlush();
-
- /*
- * If it's single-buffered, we shouldn't be here.
- */
- if ( ! fgStructure.Window->Window.DoubleBuffered ) return ;
-
-#if TARGET_HOST_UNIX_X11
- /*
- * Issue the glXSwapBuffers call and be done with it
- */
- glXSwapBuffers( fgDisplay.Display, fgStructure.Window->Window.Handle );
-
-#elif TARGET_HOST_WIN32
- /*
- * Swap the window's buffers
- */
- SwapBuffers( fgStructure.Window->Window.Device );