Skip to content

Commit

Permalink
[host] d12: fix, send the current dirtyRects, not the old
Browse files Browse the repository at this point in the history
  • Loading branch information
gnif committed Feb 23, 2024
1 parent a6dc8a9 commit 66049cf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions host/platform/Windows/capture/D12/d12.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 66049cf

Please sign in to comment.