Merge pull request #48 from fecf/master

Fixed AllocatorPimpl::m_Device10 not being released
This commit is contained in:
Adam Sawicki 2023-01-09 10:47:04 +01:00 committed by GitHub
commit f128d39b7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6848,6 +6848,9 @@ HRESULT AllocatorPimpl::Init(const ALLOCATOR_DESC& desc)
AllocatorPimpl::~AllocatorPimpl()
{
#ifdef __ID3D12Device10_INTERFACE_DEFINED__
SAFE_RELEASE(m_Device10);
#endif
#ifdef __ID3D12Device8_INTERFACE_DEFINED__
SAFE_RELEASE(m_Device8);
#endif