X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/03647350fc7cd141953c72e0284e928847d30f44..9482c64466359ec7cfd201bebc3399ac4a56b4e6:/src/osx/carbon/glcanvas.cpp?ds=sidebyside diff --git a/src/osx/carbon/glcanvas.cpp b/src/osx/carbon/glcanvas.cpp index 4029acc11c..9a6226dd9a 100644 --- a/src/osx/carbon/glcanvas.cpp +++ b/src/osx/carbon/glcanvas.cpp @@ -77,11 +77,6 @@ void WXGLDestroyContext( WXGLContext context ) } } -void WXGLSwapBuffers( WXGLContext context ) -{ - aglSwapBuffers(context); -} - WXGLContext WXGLGetCurrentContext() { return aglGetCurrentContext(); @@ -367,6 +362,15 @@ wxGLCanvas::~wxGLCanvas() WXGLDestroyContext(m_dummyContext); } +bool wxGLCanvas::SwapBuffers() +{ + WXGLContext context = WXGLGetCurrentContext(); + wxCHECK_MSG(context, false, wxT("should have current context")); + + aglSwapBuffers(context); + return true; +} + void wxGLCanvas::SetViewport() { if ( !m_needsUpdate )