From: Vadim Zeitlin Date: Wed, 11 Apr 2007 13:55:04 +0000 (+0000) Subject: add aglUpdateContext() call (doesn't seem to change anything but should be there... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1be2473f5909d77ec93070d390429d92f3e47298?ds=inline add aglUpdateContext() call (doesn't seem to change anything but should be there according to the docs) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45402 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/glcanvas.cpp b/src/mac/carbon/glcanvas.cpp index fb67a57594..a5151fe3d2 100644 --- a/src/mac/carbon/glcanvas.cpp +++ b/src/mac/carbon/glcanvas.cpp @@ -363,9 +363,10 @@ void wxGLCanvas::SetViewport() parms[0] += 20000; if ( !aglSetInteger(context, AGL_BUFFER_RECT, parms) ) - { wxLogAGLError("aglSetInteger(AGL_BUFFER_RECT)"); - } + + if ( !aglUpdateContext(context) ) + wxLogAGLError("aglUpdateContext"); } void wxGLCanvas::OnSize(wxSizeEvent& event)