mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 19:54:19 +01:00
[d3d9] Return D3DERR_DEVICELOST on reset failure due to losable resources
This commit is contained in:
parent
912a530d1c
commit
6e0c048b88
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user