]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/carbon/glcanvas.cpp
fix wxGTK1 compilation after wxTextEntry DoGetValue() change
[wxWidgets.git] / src / osx / carbon / glcanvas.cpp
index f61a03cb476608ddd1467eaf6ef853c6fdf1f59d..111e298fd849bcefe15ff6fb859155b39fddf11a 100644 (file)
@@ -258,7 +258,7 @@ bool wxGLContext::SetCurrent(const wxGLCanvas& win) const
     aglSetInteger(m_glContext, AGL_BUFFER_NAME, &bufnummer);
     //win.SetLastContext(m_glContext);
     
     aglSetInteger(m_glContext, AGL_BUFFER_NAME, &bufnummer);
     //win.SetLastContext(m_glContext);
     
-    wx_const_cast(wxGLCanvas&, win).SetViewport();
+    const_cast<wxGLCanvas&>(win).SetViewport();
 
     if ( !aglSetDrawable(m_glContext, drawable) )
     {
 
     if ( !aglSetDrawable(m_glContext, drawable) )
     {