[host] nvfbc: fix use of initialized variable

This commit is contained in:
Geoffrey McRae 2023-10-22 01:21:20 +11:00
parent ad65561511
commit a6a6b8779a

View File

@ -589,7 +589,10 @@ static void updateDamageRects(CaptureFrame * frame)
// init the ds usage // init the ds usage
for(unsigned int i = 0; i < ARRAY_LENGTH(ds); ++i) for(unsigned int i = 0; i < ARRAY_LENGTH(ds); ++i)
{
ds[i].id = -1;
ds[i].use = (bool)this->diffMap[i]; ds[i].use = (bool)this->diffMap[i];
}
// reduce the number of resulting rectangles by filling in holes and merging // reduce the number of resulting rectangles by filling in holes and merging
// irregular shapes into contiguous rectangles // irregular shapes into contiguous rectangles