Skip to content

Commit

Permalink
GPU: Clear RT before sending to media capture
Browse files Browse the repository at this point in the history
Fixes junk in inactive areas on Mac.
  • Loading branch information
stenzek committed Aug 12, 2024
1 parent f48d3b4 commit 71738d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/gpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 71738d1

Please # to comment.