mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-12 22:45:29 +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
|
#region IGraphicsContext Members
|
||||||
bool first = false;
|
|
||||||
|
bool firstSwap = false;
|
||||||
public void SwapBuffers()
|
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. <--");
|
Debug.WriteLine("--> Resetting drawable. <--");
|
||||||
first = true;
|
firstSwap = true;
|
||||||
SetDrawable(carbonWindow);
|
SetDrawable(carbonWindow);
|
||||||
Update(carbonWindow);
|
Update(carbonWindow);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue