other ? other->m_aglContext : NULL);
if ( !m_aglContext )
wxLogAGLError("aglCreateContext");
-
- return;
- if ( !aglEnable(m_aglContext, AGL_BUFFER_RECT) )
- wxLogAGLError("aglEnable(AGL_BUFFER_RECT)");
}
wxGLContext::~wxGLContext()
if ( !m_aglContext )
return;
- AGLDrawable drawable = (AGLDrawable)UMAGetWindowPort(
+ AGLDrawable drawable = (AGLDrawable)GetWindowPort(
MAC_WXHWND(win.MacGetTopLevelWindowRef()));
if ( !aglSetDrawable(m_aglContext, drawable) )
wxLogAGLError("aglSetDrawable");
parms[0] += 20000;
if ( !aglSetInteger(context, AGL_BUFFER_RECT, parms) )
- {
wxLogAGLError("aglSetInteger(AGL_BUFFER_RECT)");
- }
+
+ if ( !aglEnable(context, AGL_BUFFER_RECT) )
+ wxLogAGLError("aglEnable(AGL_BUFFER_RECT)");
+
+ if ( !aglUpdateContext(context) )
+ wxLogAGLError("aglUpdateContext");
}
void wxGLCanvas::OnSize(wxSizeEvent& event)