GS/Vulkan: Prevent GS state overriding present viewport/scissor

This commit is contained in:
Connor McLaughlin 2022-01-20 22:03:51 +10:00 committed by refractionpcsx2
parent e3b4d13c47
commit 438480517b
1 changed files with 5 additions and 0 deletions

View File

@ -609,6 +609,11 @@ void GSDeviceVK::DoStretchRect(GSTextureVK* sTex, const GSVector4& sRect, GSText
if (InRenderPass() && !CheckRenderPassArea(dst_rc))
EndRenderPass();
}
else
{
// this is for presenting, we don't want to screw with the viewport/scissor set by display
m_dirty_flags &= ~(DIRTY_FLAG_VIEWPORT | DIRTY_FLAG_SCISSOR);
}
const bool drawing_to_current_rt = (is_present || InRenderPass());
if (!drawing_to_current_rt)