GPU: Clear RT before sending to media capture

Fixes junk in inactive areas on Mac.
This commit is contained in:
Stenzek 2024-08-12 22:16:30 +10:00
parent f48d3b4636
commit 71738d12e0
No known key found for this signature in database
1 changed files with 4 additions and 0 deletions

View File

@ -2159,6 +2159,10 @@ bool GPU::SendDisplayToMediaCapture(MediaCapture* cap)
GSVector4i display_rect, draw_rect;
CalculateDrawRect(target->GetWidth(), target->GetHeight(), !g_settings.debugging.show_vram, apply_aspect_ratio,
&display_rect, &draw_rect);
// Not cleared by RenderDisplay().
g_gpu_device->ClearRenderTarget(target, GPUDevice::DEFAULT_CLEAR_COLOR);
if (!RenderDisplay(target, display_rect, draw_rect, postfx))
return false;