mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-31 03:41:01 +00:00
Clear lists of resources after closing on D3D11
* This means even if a resource leaks (which it shouldn't) we won't cause problems on loading a subsequent capture.
This commit is contained in:
@@ -330,6 +330,11 @@ WrappedID3D11Device::~WrappedID3D11Device()
|
||||
RDCASSERT(WrappedID3D11Texture3D1::m_TextureList.empty());
|
||||
}
|
||||
|
||||
WrappedID3D11Buffer::m_BufferList.clear();
|
||||
WrappedID3D11Texture1D::m_TextureList.clear();
|
||||
WrappedID3D11Texture2D1::m_TextureList.clear();
|
||||
WrappedID3D11Texture3D1::m_TextureList.clear();
|
||||
|
||||
SAFE_DELETE(m_Replay);
|
||||
|
||||
SAFE_RELEASE(m_ReplayNVAPI);
|
||||
|
||||
Reference in New Issue
Block a user