]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/glcanvas_osx.cpp
Flush output stream in wxMessageOutputStderr::Output() to avoid losing any output...
[wxWidgets.git] / src / osx / glcanvas_osx.cpp
index 11e4d99bbeca28bb131730167e9bdf22f699877a..465e0d06dbd2831daa4b6be6584327c8ce8cd446 100644 (file)
@@ -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);