mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
OGL: Fix a memory leak that would occur every time a game is launched
This commit is contained in:
parent
a277172b49
commit
9476756d43
@ -24,6 +24,7 @@ protected:
|
||||
|
||||
u32 s_opengl_mode;
|
||||
public:
|
||||
virtual ~cInterfaceBase() {}
|
||||
virtual void Swap() {}
|
||||
virtual void SetMode(u32 mode) { s_opengl_mode = GLInterfaceMode::MODE_OPENGL; }
|
||||
virtual u32 GetMode() { return s_opengl_mode; }
|
||||
|
@ -225,6 +225,7 @@ void VideoBackend::Shutdown()
|
||||
OSD::DoCallbacks(OSD::OSD_SHUTDOWN);
|
||||
|
||||
GLInterface->Shutdown();
|
||||
delete GLInterface;
|
||||
}
|
||||
|
||||
void VideoBackend::Video_Cleanup()
|
||||
|
@ -163,6 +163,7 @@ void VideoSoftware::Shutdown()
|
||||
OSD::DoCallbacks(OSD::OSD_SHUTDOWN);
|
||||
|
||||
GLInterface->Shutdown();
|
||||
delete GLInterface;
|
||||
}
|
||||
|
||||
void VideoSoftware::Video_Cleanup()
|
||||
|
Loading…
Reference in New Issue
Block a user