mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +00:00
[host] d12: check if the device was removed during init
This commit is contained in:
parent
dd6c79594b
commit
6e37305765
@ -1014,6 +1014,15 @@ static bool d12_heapTest(ID3D12Device3 * device, ID3D12Heap * heap)
|
|||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* the above may succeed even if there was a fault, as such we also need to
|
||||||
|
* check if the device was removed */
|
||||||
|
hr = ID3D12Device3_GetDeviceRemovedReason(device);
|
||||||
|
if (hr != S_OK)
|
||||||
|
{
|
||||||
|
DEBUG_WINERROR("Device Removed: %s", hr);
|
||||||
|
goto exit;
|
||||||
|
}
|
||||||
|
|
||||||
result = true;
|
result = true;
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
|
Loading…
Reference in New Issue
Block a user