1
0
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:
Philip Rebohle 2019-09-22 19:20:53 +02:00
parent 11b7b1f1a5
commit 1fa8887c47
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

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