From 5ca18ff04e6dd69e09a5675db8f9474a51bdfcc0 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Wed, 10 Oct 2018 19:40:47 +1000 Subject: [PATCH] Vulkan: Restore viewport/scissor state on RestoreAPIState --- Source/Core/VideoBackends/Vulkan/Renderer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/VideoBackends/Vulkan/Renderer.cpp b/Source/Core/VideoBackends/Vulkan/Renderer.cpp index a49052d2e5..764250cbe9 100644 --- a/Source/Core/VideoBackends/Vulkan/Renderer.cpp +++ b/Source/Core/VideoBackends/Vulkan/Renderer.cpp @@ -857,7 +857,6 @@ void Renderer::DrawScreen(VKTexture* xfb_texture, const EFBRectangle& xfb_region // End drawing to backbuffer StateTracker::GetInstance()->EndRenderPass(); - BindEFBToStateTracker(); // Transition the backbuffer to PRESENT_SRC to ensure all commands drawing // to it have finished before present. @@ -1047,6 +1046,8 @@ void Renderer::RestoreAPIState() static_cast(m_current_framebuffer)->TransitionForSample(); BindEFBToStateTracker(); + BPFunctions::SetViewport(); + BPFunctions::SetScissor(); // Instruct the state tracker to re-bind everything before the next draw StateTracker::GetInstance()->SetPendingRebind();