public override void SwapBuffers( bool waitForVSync )
{
if ( glContext != null )
{
glContext.SwapBuffers();
return;
}
if ( _window != null )
{
_window.ProcessEvents();
if ( _window.Exists == false /*|| _window.IsExiting == true*/)
{
WindowEventMonitor.Instance.WindowClosed( this );
return;
}
if ( _window.WindowState == WindowState.Minimized || !_window.Focused )
return;
/*_window.SwapBuffers();*/
}
}