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()
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)