-#ifndef __WXMAC__ // fix this?
- wxGLContext(bool isRGB, wxGLCanvas *win,
- const wxPalette& palette = wxNullPalette);
+#ifndef __WXMAC__
+ wxGLContext(wxGLCanvas *win, const wxGLContext* other = NULL);
+#else
+ %extend {
+ wxGLContext(bool isRGB, wxGLCanvas *win,
+ const wxPalette& palette = wxNullPalette,
+ const wxGLContext* other = NULL) {
+ AGLPixelFormat fmt; // TODO: How should this be initialized?
+ return new wxGLContext(fmt, win, palette, other);
+ }
+ }
+