X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/21562ad22334d8e1d3bb9bef40c8f8f6faf61c73..b3eb776ad6e73ff50d3d75e3b7c8f418154feae6:/src/gtk/glcanvas.cpp?ds=sidebyside 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); }