[host] dxgi: fix HDR damage aware copy

This commit is contained in:
Geoffrey McRae
2023-10-22 03:15:12 +11:00
parent 3ed71a09f4
commit 742e41c2c3
3 changed files with 12 additions and 12 deletions

View File

@@ -1177,8 +1177,8 @@ static CaptureResult dxgi_getFrame(FrameBuffer * frame,
memcpy(damage->rects + damage->count, tex->damageRects,
tex->damageRectsCount * sizeof(*tex->damageRects));
damage->count += tex->damageRectsCount;
rectsBufferToFramebuffer(damage->rects, damage->count, frame, this->pitch,
height, tex->map, this->pitch);
rectsBufferToFramebuffer(damage->rects, damage->count, this->bpp, frame,
this->pitch, height, tex->map, this->pitch);
}
for (int i = 0; i < LGMP_Q_FRAME_LEN; ++i)