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:
baldurk
2023-12-11 11:00:12 +00:00
parent 564e0d09a4
commit 651fd92ce2
+5
View File
@@ -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);