X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/144ae5bbbf6c9cef6f5e6bb19f0f8bc7542a8810..0bbe61b8c18a1795189f0cf73cc61c14a0fb846d:/src/gtk/glcanvas.cpp diff --git a/src/gtk/glcanvas.cpp b/src/gtk/glcanvas.cpp index ab444bc18c..23d49c19a7 100644 --- a/src/gtk/glcanvas.cpp +++ b/src/gtk/glcanvas.cpp @@ -157,6 +157,9 @@ wxGLCanvas::wxGLCanvas(wxWindow *parent, const wxPalette& palette) : m_createImplicitContext(true) { + m_sharedContext = NULL; + m_sharedContextOf = NULL; + Create(parent, id, pos, size, style, name, attribList, palette); } @@ -185,6 +188,7 @@ wxGLCanvas::wxGLCanvas(wxWindow *parent, const wxPalette& palette ) : m_createImplicitContext(true) { + m_sharedContext = NULL; m_sharedContextOf = wx_const_cast(wxGLCanvas *, shared); Create(parent, id, pos, size, style, name, attribList, palette);