Clean up DXGIFactory after use on D3D12
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user