dxgi: check for memory leaks in d3d12

This commit is contained in:
Geoffrey McRae 2022-01-19 08:59:42 +11:00
parent f8b4874799
commit 99536eaf9d

View File

@ -328,7 +328,11 @@ static void d3d12_free(void)
ID3D12CommandQueue_Release(this->commandQueue);
if (this->device)
ID3D12Device_Release(this->device);
{
DWORD count = ID3D12Device_Release(this->device);
if (count != 0)
DEBUG_ERROR("ID3D12Device release is %lu, there is a memory leak!", count);
}
free(this);
this = NULL;