X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/880a2b69fb1d9e64fd22b9cc950246a97d6f7d16..7735b2ea691f41d7a7f007befbe969386873b86e:/src/osx/glcanvas_osx.cpp diff --git a/src/osx/glcanvas_osx.cpp b/src/osx/glcanvas_osx.cpp index 11e4d99bbe..d571089709 100644 --- a/src/osx/glcanvas_osx.cpp +++ b/src/osx/glcanvas_osx.cpp @@ -150,7 +150,7 @@ bool wxGLCanvasBase::IsDisplaySupported(const int *attribList) bool wxGLCanvas::SwapBuffers() { WXGLContext context = WXGLGetCurrentContext(); - wxCHECK_MSG(context, false, _T("should have current context")); + wxCHECK_MSG(context, false, wxT("should have current context")); WXGLSwapBuffers(context); return true; @@ -164,12 +164,12 @@ bool wxGLCanvasBase::IsExtensionSupported(const char *extension) if ( !ctx ) return false; - WXGLContext ctxOld = aglGetCurrentContext(); - aglSetCurrentContext(ctx); + WXGLContext ctxOld = WXGLGetCurrentContext(); + WXGLSetCurrentContext(ctx); wxString extensions = wxString::FromAscii(glGetString(GL_EXTENSIONS)); - aglSetCurrentContext(ctxOld); + WXGLSetCurrentContext(ctxOld); WXGLDestroyPixelFormat(fmt); WXGLDestroyContext(ctx);