Removed small OGL glitches; added new sample

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1999-02-07 23:56:40 +00:00
parent dbeac4bd72
commit 306dfc2b3d
148 changed files with 7673 additions and 5 deletions

View File

@@ -177,13 +177,11 @@ void MyFrame::OnSize(wxSizeEvent& event)
void MyFrame::OnCloseWindow(wxCloseEvent& event)
{
if (wxDocParentFrame::OnClose())
wxDocParentFrame::OnCloseWindow(event);
if (!event.GetVeto())
{
wxOGLCleanUp();
this->Destroy();
}
else
event.Veto();
}
// Intercept menu commands