public override void SwapBuffers() { if (!this.firstSwap && this.carbonWindow.IsControl) { this.firstSwap = true; this.SetDrawable(this.carbonWindow); this.Update((IWindowInfo)this.carbonWindow); } Agl.aglSwapBuffers(this.Handle.Handle); this.MyAGLReportError("aglSwapBuffers"); }
public override void SwapBuffers() { // this is part of the hack to avoid dropping the first frame when // using multiple GLControls. if (firstSwap == false && carbonWindow.IsControl) { Debug.WriteLine("--> Resetting drawable. <--"); firstSwap = true; SetDrawable(carbonWindow); Update(carbonWindow); } Agl.aglSwapBuffers(Handle.Handle); MyAGLReportError("aglSwapBuffers"); }
public override void SwapBuffers() { Agl.aglSwapBuffers(ContextHandle); Agl.CheckReturnValue(0, "aglSwapBuffers"); }