mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 19:54:19 +01:00
[d3d11] Return device lost errors in Present if necessary
This commit is contained in:
parent
11b7b1f1a5
commit
1fa8887c47
@ -183,13 +183,19 @@ namespace dxvk {
|
||||
|
||||
FlushImmediateContext();
|
||||
|
||||
HRESULT hr = S_OK;
|
||||
|
||||
try {
|
||||
PresentImage(SyncInterval);
|
||||
return S_OK;
|
||||
} catch (const DxvkError& e) {
|
||||
Logger::err(e.message());
|
||||
return E_FAIL;
|
||||
hr = E_FAIL;
|
||||
}
|
||||
|
||||
if (m_device->getDeviceStatus() != VK_SUCCESS)
|
||||
hr = DXGI_ERROR_DEVICE_RESET;
|
||||
|
||||
return hr;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user