[host] d12: fix, send the current dirtyRects, not the old

This commit is contained in:
Geoffrey McRae 2024-02-23 17:38:45 +11:00
parent a6dc8a9db3
commit 66049cf763

View File

@ -495,10 +495,9 @@ static CaptureResult d12_waitFrame(unsigned frameBufferIndex,
{
// create a clean list of rects
FrameDamageRect allRects[this->nbDirtyRects];
FrameDamageRect allRects[nbDirtyRects];
unsigned count = 0;
for(const RECT * rect = this->dirtyRects;
rect < this->dirtyRects + this->nbDirtyRects; ++rect)
for(const RECT * rect = dirtyRects; rect < dirtyRects + nbDirtyRects; ++rect)
allRects[count++] = (FrameDamageRect){
.x = rect->left,
.y = rect->top,