Merge branch 'dxgifactory_fix' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-dxgifactory_fix
This commit is contained in:
@@ -221,15 +221,6 @@ GPUDevice* GPUDeviceDX11::Create()
|
||||
Delete(device);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
#if PLATFORM_WINDOWS
|
||||
if (dxgiFactory6 != nullptr)
|
||||
dxgiFactory6->Release();
|
||||
else
|
||||
#endif
|
||||
{
|
||||
dxgiFactory->Release();
|
||||
}
|
||||
|
||||
return device;
|
||||
}
|
||||
|
||||
@@ -202,15 +202,6 @@ 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