Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Implement SwapInterval for AGL interface
  • Loading branch information
Zakk authored and CrossVR committed Jan 27, 2014
1 parent ec8e17c commit 0eadc2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/Core/DolphinWX/GLInterface/AGL.cpp
Expand Up @@ -121,4 +121,8 @@ void cInterfaceAGL::Update()
[GLWin.cocoaCtx update];
}

void cInterfaceAGL::SwapInterval(int Interval)
{
[GLWin.cocoaCtx setValues:(GLint *)&Interval forParameter:NSOpenGLCPSwapInterval];
}

1 change: 1 addition & 0 deletions Source/Core/DolphinWX/GLInterface/AGL.h
Expand Up @@ -32,6 +32,7 @@ class cInterfaceAGL : public cInterfaceBase
bool ClearCurrent();
void Shutdown();
void Update();
void SwapInterval(int Interval);

};
#endif
Expand Down

0 comments on commit 0eadc2e

Please sign in to comment.