compilation fix for wxOSX/Cocoa: don't use Carbon functions in common to all OS X ports OpenGL code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user