[d3d9] Return D3DERR_DEVICELOST on reset failure due to losable resources

This commit is contained in:
WinterSnowfall
2024-10-04 20:23:30 +03:00
committed by Philip Rebohle
parent 912a530d1c
commit 6e0c048b88

View File

@@ -531,7 +531,7 @@ namespace dxvk {
if (unlikely(m_losableResourceCounter.load() != 0 && !IsExtended() && m_d3d9Options.countLosableResources)) {
Logger::warn(str::format("Device reset failed because device still has alive losable resources: Device not reset. Remaining resources: ", m_losableResourceCounter.load()));
m_deviceLostState = D3D9DeviceLostState::NotReset;
return D3DERR_INVALIDCALL;
return D3DERR_DEVICELOST;
}
HRESULT hr = ResetSwapChain(pPresentationParameters, nullptr);