From a6dc8a9db377994e1735d207e5352eb28f05188e Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Fri, 23 Feb 2024 17:28:09 +1100 Subject: [PATCH] [host] d12: fix damage tracking on re-init --- host/platform/Windows/capture/D12/d12.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/host/platform/Windows/capture/D12/d12.c b/host/platform/Windows/capture/D12/d12.c index 767d2c02..69d626a5 100644 --- a/host/platform/Windows/capture/D12/d12.c +++ b/host/platform/Windows/capture/D12/d12.c @@ -401,6 +401,9 @@ static bool d12_deinit(void) memset(&this->captureFormat, 0, sizeof(this->captureFormat)); memset(&this->dstFormat , 0, sizeof(this->dstFormat )); + /* dirty rect history is no longer valid */ + this->nbDirtyRects = 0; + return result; }