From: Vadim Zeitlin Date: Sun, 3 Feb 2008 15:00:12 +0000 (+0000) Subject: initialize m_sharedContext and m_sharedContextOf to NULL when they're not used (patch... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/21562ad22334d8e1d3bb9bef40c8f8f6faf61c73 initialize m_sharedContext and m_sharedContextOf to NULL when they're not used (patch 1881968) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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);