GUI/OpenGL: Video debugging window crash fix
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4225 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
1 parent
7dffe43eaa
commit
24d68da653
7 files changed
+56
-111
No files matched your search
@@ -46,15 +46,20 @@ GFXDebuggerOGL::GFXDebuggerOGL(wxWindow *parent, wxWindowID id, const wxString &
|
||||
GFXDebuggerOGL::~GFXDebuggerOGL()
|
||||
{
|
||||
SaveSettings();
|
||||
m_DebuggerFrame = NULL;
|
||||
NOTICE_LOG(CONSOLE, "Stop [Video Thread]: Closing OpenGL debugging window");
|
||||
}
|
||||
|
||||
void GFXDebuggerOGL::OnClose(wxCloseEvent& event)
|
||||
{
|
||||
// save the window position when we hide the window
|
||||
// This means wxDialog's Destroy is used
|
||||
//event.Skip();
|
||||
|
||||
// Save the window position
|
||||
SaveSettings();
|
||||
|
||||
event.Skip(); // This means wxDialog's Destroy is used
|
||||
// Destroy
|
||||
delete this;
|
||||
}
|
||||
|
||||
void GFXDebuggerOGL::SaveSettings() const
|
||||
|
||||
Reference in new issue
Block a user