mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 22:29:21 +00:00
Implement SwapInterval for AGL interface
This commit is contained in:
parent
ec8e17c50f
commit
0eadc2e2a4
2 changed files with 5 additions and 0 deletions
|
@ -121,4 +121,8 @@ void cInterfaceAGL::Update()
|
||||||
[GLWin.cocoaCtx update];
|
[GLWin.cocoaCtx update];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void cInterfaceAGL::SwapInterval(int Interval)
|
||||||
|
{
|
||||||
|
[GLWin.cocoaCtx setValues:(GLint *)&Interval forParameter:NSOpenGLCPSwapInterval];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,7 @@ public:
|
||||||
bool ClearCurrent();
|
bool ClearCurrent();
|
||||||
void Shutdown();
|
void Shutdown();
|
||||||
void Update();
|
void Update();
|
||||||
|
void SwapInterval(int Interval);
|
||||||
|
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue