X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/524c47aa3adf2af11a3069fd5da035a604f08f66..55410bb4f67febe1ca20654f078ea4fb9a6223ae:/src/osx/carbon/glcanvas.cpp?ds=sidebyside diff --git a/src/osx/carbon/glcanvas.cpp b/src/osx/carbon/glcanvas.cpp index f61a03cb47..111e298fd8 100644 --- a/src/osx/carbon/glcanvas.cpp +++ b/src/osx/carbon/glcanvas.cpp @@ -258,7 +258,7 @@ bool wxGLContext::SetCurrent(const wxGLCanvas& win) const aglSetInteger(m_glContext, AGL_BUFFER_NAME, &bufnummer); //win.SetLastContext(m_glContext); - wx_const_cast(wxGLCanvas&, win).SetViewport(); + const_cast(win).SetViewport(); if ( !aglSetDrawable(m_glContext, drawable) ) {