mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 06:35:30 +00:00
Minor refactoring and commenting in AglContext.cs.
This commit is contained in:
parent
b6642764eb
commit
8cc99350de
|
@ -262,13 +262,16 @@ namespace OpenTK.Platform.MacOS
|
|||
|
||||
|
||||
#region IGraphicsContext Members
|
||||
bool first = false;
|
||||
|
||||
bool firstSwap = false;
|
||||
public void SwapBuffers()
|
||||
{
|
||||
if (first == false && carbonWindow.IsControl)
|
||||
// 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. <--");
|
||||
first = true;
|
||||
firstSwap = true;
|
||||
SetDrawable(carbonWindow);
|
||||
Update(carbonWindow);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue