mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
fix some D3D memory leaks
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5127 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
aa1081348d
commit
4915097d93
@ -320,7 +320,16 @@ HRESULT Create(int adapter, HWND wnd, bool _fullscreen, int _resolution, int aa_
|
||||
|
||||
void Close()
|
||||
{
|
||||
dev->Release();
|
||||
if (back_buffer_z)
|
||||
back_buffer_z->Release();
|
||||
back_buffer_z = NULL;
|
||||
back_buffer->Release();
|
||||
back_buffer = NULL;
|
||||
|
||||
ULONG references = dev->Release();
|
||||
if (references)
|
||||
ERROR_LOG(VIDEO, "Unreleased references: %i.", references);
|
||||
|
||||
dev = 0;
|
||||
}
|
||||
|
||||
|
@ -247,9 +247,15 @@ void VertexShaderCache::Shutdown()
|
||||
if (SimpleVertexShader)
|
||||
SimpleVertexShader->Release();
|
||||
SimpleVertexShader = NULL;
|
||||
|
||||
if (ClearVertexShader)
|
||||
ClearVertexShader->Release();
|
||||
ClearVertexShader = NULL;
|
||||
|
||||
if (FSAAVertexShader)
|
||||
FSAAVertexShader->Release();
|
||||
FSAAVertexShader = NULL;
|
||||
|
||||
Clear();
|
||||
g_vs_disk_cache.Sync();
|
||||
g_vs_disk_cache.Close();
|
||||
|
Loading…
Reference in New Issue
Block a user