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:
parent
2e9a836adb
commit
11b7b1f1a5
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user