don't delete the context in ~wxGLCanvas(), the base class will do it (patch 1912776)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
58dcfab49f
commit
a6b4b834b1
@ -249,10 +249,6 @@ wxGLCanvas::wxGLCanvas(wxWindow *parent,
|
||||
|
||||
wxGLCanvas::~wxGLCanvas()
|
||||
{
|
||||
#if WXWIN_COMPATIBILITY_2_8
|
||||
delete m_glContext;
|
||||
#endif
|
||||
|
||||
::ReleaseDC(GetHwnd(), m_hDC);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user