vk: Fixup for PR #8590

- This change was lost during rebase
This commit is contained in:
kd-11 2020-07-23 23:30:56 +03:00 committed by kd-11
parent b0c7ca6d1f
commit be4b71b805

View File

@ -2114,6 +2114,16 @@ void VKGSRender::prepare_rtts(rsx::framebuffer_creation_context context)
flush_command_queue();
}
if (!m_rtts.superseded_surfaces.empty())
{
for (auto& surface : m_rtts.superseded_surfaces)
{
m_texture_cache.discard_framebuffer_memory_region(*m_current_command_buffer, surface->get_memory_range());
}
m_rtts.superseded_surfaces.clear();
}
const auto color_fmt_info = get_compatible_gcm_format(m_framebuffer_layout.color_format);
for (u8 index : m_draw_buffers)
{