Modal dialogs must be closed with EndModal() or all kinds of weird
corruption can happen with wx 2.9. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7092 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
145559424c
commit
d93dc23e77
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
#include "VideoConfigDiag.h"
|
#include "VideoConfigDiag.h"
|
||||||
|
|
||||||
#include "FileUtil.h"
|
#include "FileUtil.h"
|
||||||
|
@ -51,7 +50,7 @@ void SettingChoice::UpdateValue(wxCommandEvent& ev)
|
||||||
|
|
||||||
void VideoConfigDiag::Event_ClickClose(wxCommandEvent&)
|
void VideoConfigDiag::Event_ClickClose(wxCommandEvent&)
|
||||||
{
|
{
|
||||||
Close();
|
EndModal(wxID_OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
void VideoConfigDiag::Event_Close(wxCloseEvent& ev)
|
void VideoConfigDiag::Event_Close(wxCloseEvent& ev)
|
||||||
|
|
|
@ -93,7 +93,7 @@ bool SaveTexture(const char* filename, u32 textarget, u32 tex, int width, int he
|
||||||
|
|
||||||
TextureCache::TCacheEntry::~TCacheEntry()
|
TextureCache::TCacheEntry::~TCacheEntry()
|
||||||
{
|
{
|
||||||
if (texture)
|
if (texture)
|
||||||
{
|
{
|
||||||
glDeleteTextures(1, &texture);
|
glDeleteTextures(1, &texture);
|
||||||
texture = 0;
|
texture = 0;
|
||||||
|
|
|
@ -36,8 +36,8 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
struct TCacheEntry : TCacheEntryBase
|
struct TCacheEntry : TCacheEntryBase
|
||||||
{
|
{
|
||||||
GLuint texture;
|
GLuint texture;
|
||||||
|
|
||||||
PC_TexFormat pcfmt;
|
PC_TexFormat pcfmt;
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ private:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void SetTextureParameters(const TexMode0 &newmode, const TexMode1 &newmode1);
|
void SetTextureParameters(const TexMode0 &newmode, const TexMode1 &newmode1);
|
||||||
};
|
};
|
||||||
|
|
||||||
~TextureCache();
|
~TextureCache();
|
||||||
|
|
||||||
|
|
|
@ -132,7 +132,7 @@ VideoConfigDialog::VideoConfigDialog(wxWindow* parent, const std::string& title,
|
||||||
|
|
||||||
void VideoConfigDialog::Event_ClickClose(wxCommandEvent&)
|
void VideoConfigDialog::Event_ClickClose(wxCommandEvent&)
|
||||||
{
|
{
|
||||||
Close();
|
EndModal(wxID_OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
void VideoConfigDialog::Event_Close(wxCloseEvent& ev)
|
void VideoConfigDialog::Event_Close(wxCloseEvent& ev)
|
||||||
|
|
Loading…
Reference in New Issue