mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 16:49:58 -06:00
Move swap control to the host specific GLInterface files.
This commit is contained in:
@ -23,6 +23,19 @@
|
||||
#include "../GLInterface.h"
|
||||
#include "WX.h"
|
||||
|
||||
void cInterfaceWX::SwapInterval(int Interval)
|
||||
{
|
||||
// WX interface only used on Apple
|
||||
#ifdef __APPLE__
|
||||
#if defined USE_WX && USE_WX
|
||||
NSOpenGLContext *ctx = GLWin.glCtxt->GetWXGLContext();
|
||||
#else
|
||||
NSOpenGLContext *ctx = GLWin.cocoaCtx;
|
||||
#endif
|
||||
[ctx setValues: &Interval forParameter: NSOpenGLCPSwapInterval];
|
||||
#endif
|
||||
}
|
||||
|
||||
void cInterfaceWX::Swap()
|
||||
{
|
||||
GLWin.glCanvas->SwapBuffers();
|
||||
|
Reference in New Issue
Block a user