Fixed AllocatorPimpl::m_Device10 not being released

This commit is contained in:
fecf 2023-01-09 03:27:50 +09:00
parent aae28a6fc9
commit 132559d399

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