Fix DXGIFactory use after release

This commit is contained in:
2023-05-29 22:22:19 +03:00
parent 6a482c987c
commit 3e848d93da
2 changed files with 0 additions and 18 deletions

View File

@@ -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;
}

View File

@@ -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;
}