X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/524c47aa3adf2af11a3069fd5da035a604f08f66..12b5f4b4d2d8a07962da7ba3b78c8c1ec2634a67:/src/osx/carbon/glcanvas.cpp 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) ) {