From 462d8187b624045675bc185d6537ba4bce817979 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 31 Jan 2024 05:42:30 +1100 Subject: [PATCH] [host] d12: handle error when windows switches to the secure desktop --- host/platform/Windows/capture/D12/backend/dd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/host/platform/Windows/capture/D12/backend/dd.c b/host/platform/Windows/capture/D12/backend/dd.c index 397cc7e6..92a2c049 100644 --- a/host/platform/Windows/capture/D12/backend/dd.c +++ b/host/platform/Windows/capture/D12/backend/dd.c @@ -287,6 +287,7 @@ static CaptureResult d12_dd_hResultToCaptureResult(const HRESULT status) case WAIT_ABANDONED: case DXGI_ERROR_ACCESS_LOST: + case DXGI_ERROR_INVALID_CALL: return CAPTURE_RESULT_REINIT; default: