Clean up DXGIFactory after use on D3D12

This commit is contained in:
2023-05-26 20:17:14 +03:00
parent bdf6a11491
commit 4e683dcc15

View File

@@ -202,6 +202,15 @@ GPUDevice* GPUDeviceDX12::Create()
return nullptr;
}
#if !(PLATFORM_XBOX_SCARLETT || PLATFORM_XBOX_ONE)
if (dxgiFactory6 != nullptr)
dxgiFactory6->Release();
else
#endif
{
dxgiFactory->Release();
}
return device;
}