]> git.saurik.com Git - wxWidgets.git/commitdiff
initialize m_sharedContext and m_sharedContextOf to NULL when they're not used (patch...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 3 Feb 2008 15:00:12 +0000 (15:00 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 3 Feb 2008 15:00:12 +0000 (15:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/glcanvas.cpp

index ab444bc18c94cd180dcbdfe321d86add3ce5fed7..23d49c19a747daa79569c7ac91c80c4ca82159ea 100644 (file)
@@ -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);