mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 05:52:11 +01:00
[d3d11] Implement GetDeviceRemovedReason
This commit is contained in:
parent
2e9a836adb
commit
11b7b1f1a5
@ -1733,12 +1733,12 @@ namespace dxvk {
|
|||||||
|
|
||||||
|
|
||||||
HRESULT STDMETHODCALLTYPE D3D11Device::GetDeviceRemovedReason() {
|
HRESULT STDMETHODCALLTYPE D3D11Device::GetDeviceRemovedReason() {
|
||||||
static std::atomic<bool> s_errorShown = { false };
|
VkResult status = m_dxvkDevice->getDeviceStatus();
|
||||||
|
|
||||||
if (!s_errorShown.exchange(true))
|
switch (status) {
|
||||||
Logger::warn("D3D11Device::GetDeviceRemovedReason: Stub");
|
case VK_SUCCESS: return S_OK;
|
||||||
|
default: return DXGI_ERROR_DEVICE_RESET;
|
||||||
return S_OK;
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user