[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 // create a clean list of rects
FrameDamageRect allRects[this->nbDirtyRects]; FrameDamageRect allRects[nbDirtyRects];
unsigned count = 0; unsigned count = 0;
for(const RECT * rect = this->dirtyRects; for(const RECT * rect = dirtyRects; rect < dirtyRects + nbDirtyRects; ++rect)
rect < this->dirtyRects + this->nbDirtyRects; ++rect)
allRects[count++] = (FrameDamageRect){ allRects[count++] = (FrameDamageRect){
.x = rect->left, .x = rect->left,
.y = rect->top, .y = rect->top,