1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 11:52:12 +01:00

[d3d11] Implement GetDeviceRemovedReason

This commit is contained in:
Philip Rebohle 2019-09-22 19:07:48 +02:00
parent 2e9a836adb
commit 11b7b1f1a5
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -1733,12 +1733,12 @@ namespace dxvk {
HRESULT STDMETHODCALLTYPE D3D11Device::GetDeviceRemovedReason() {
static std::atomic<bool> s_errorShown = { false };
if (!s_errorShown.exchange(true))
Logger::warn("D3D11Device::GetDeviceRemovedReason: Stub");
return S_OK;
VkResult status = m_dxvkDevice->getDeviceStatus();
switch (status) {
case VK_SUCCESS: return S_OK;
default: return DXGI_ERROR_DEVICE_RESET;
}
}