X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/21562ad22334d8e1d3bb9bef40c8f8f6faf61c73..aaf37267a8d038f61f06c4a12d16bf3df38fc3be:/src/gtk/glcanvas.cpp diff --git a/src/gtk/glcanvas.cpp b/src/gtk/glcanvas.cpp index 23d49c19a7..c8b805cc00 100644 --- a/src/gtk/glcanvas.cpp +++ b/src/gtk/glcanvas.cpp @@ -174,7 +174,7 @@ wxGLCanvas::wxGLCanvas(wxWindow *parent, const wxPalette& palette) : m_createImplicitContext(true) { - m_sharedContext = wx_const_cast(wxGLContext *, shared); + m_sharedContext = const_cast(shared); Create(parent, id, pos, size, style, name, attribList, palette); } @@ -189,7 +189,7 @@ wxGLCanvas::wxGLCanvas(wxWindow *parent, : m_createImplicitContext(true) { m_sharedContext = NULL; - m_sharedContextOf = wx_const_cast(wxGLCanvas *, shared); + m_sharedContextOf = const_cast(shared); Create(parent, id, pos, size, style, name, attribList, palette); }