d3d12: Fix memleak

This commit is contained in:
vlj 2015-05-29 17:16:14 +02:00 committed by Vincent Lejeune
parent da328c078a
commit 8e9cdc5fea
1 changed files with 2 additions and 0 deletions

View File

@ -318,6 +318,7 @@ D3D12GSRender::D3D12GSRender()
D3D12GSRender::~D3D12GSRender() D3D12GSRender::~D3D12GSRender()
{ {
m_texturesRTTs.clear();
m_dummyTexture->Release(); m_dummyTexture->Release();
m_convertPSO->Release(); m_convertPSO->Release();
m_convertRootSignature->Release(); m_convertRootSignature->Release();
@ -391,6 +392,7 @@ void D3D12GSRender::InitDrawBuffers()
m_texturesRTTs[m_fbo->m_address_color_a] = Texture; m_texturesRTTs[m_fbo->m_address_color_a] = Texture;
m_fbo->m_address_color_a = address_a; m_fbo->m_address_color_a = address_a;
m_perFrameStorage.m_inflightCommandList.push_back(copycmdlist);
} }
} }