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
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user