From a6a6b8779ae7881c78ea5837d1e8728dd50c04eb Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sun, 22 Oct 2023 01:21:20 +1100 Subject: [PATCH] [host] nvfbc: fix use of initialized variable --- host/platform/Windows/capture/NVFBC/src/nvfbc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/host/platform/Windows/capture/NVFBC/src/nvfbc.c b/host/platform/Windows/capture/NVFBC/src/nvfbc.c index d6e08dc9..ae23ebe1 100644 --- a/host/platform/Windows/capture/NVFBC/src/nvfbc.c +++ b/host/platform/Windows/capture/NVFBC/src/nvfbc.c @@ -589,7 +589,10 @@ static void updateDamageRects(CaptureFrame * frame) // init the ds usage for(unsigned int i = 0; i < ARRAY_LENGTH(ds); ++i) + { + ds[i].id = -1; ds[i].use = (bool)this->diffMap[i]; + } // reduce the number of resulting rectangles by filling in holes and merging // irregular shapes into contiguous rectangles