X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dc3065a56f1febf3de3b3bbf0904cf8fdc7f7c50..ff42758536f8d573409bf6c35528497ba36b4d0e:/src/mac/carbon/glcanvas.cpp 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)