GPU/HW: Clear host display texture on interlace switch

This commit is contained in:
Connor McLaughlin
2021-07-11 14:09:11 +10:00
parent 928b5694ed
commit c0352eb19f
3 changed files with 6 additions and 0 deletions

View File

@ -824,6 +824,8 @@ void GPU_HW_D3D11::ClearDisplay()
{
GPU_HW::ClearDisplay();
m_host_display->ClearDisplayTexture();
static constexpr std::array<float, 4> clear_color = {0.0f, 0.0f, 0.0f, 1.0f};
m_context->ClearRenderTargetView(m_display_texture.GetD3DRTV(), clear_color.data());
}