Vulkan: Restore viewport/scissor state on RestoreAPIState

This commit is contained in:
Stenzek 2018-10-10 19:40:47 +10:00
parent b409a87d1a
commit 5ca18ff04e
1 changed files with 2 additions and 1 deletions

View File

@ -857,7 +857,6 @@ void Renderer::DrawScreen(VKTexture* xfb_texture, const EFBRectangle& xfb_region
// End drawing to backbuffer // End drawing to backbuffer
StateTracker::GetInstance()->EndRenderPass(); StateTracker::GetInstance()->EndRenderPass();
BindEFBToStateTracker();
// Transition the backbuffer to PRESENT_SRC to ensure all commands drawing // Transition the backbuffer to PRESENT_SRC to ensure all commands drawing
// to it have finished before present. // to it have finished before present.
@ -1047,6 +1046,8 @@ void Renderer::RestoreAPIState()
static_cast<const VKFramebuffer*>(m_current_framebuffer)->TransitionForSample(); static_cast<const VKFramebuffer*>(m_current_framebuffer)->TransitionForSample();
BindEFBToStateTracker(); BindEFBToStateTracker();
BPFunctions::SetViewport();
BPFunctions::SetScissor();
// Instruct the state tracker to re-bind everything before the next draw // Instruct the state tracker to re-bind everything before the next draw
StateTracker::GetInstance()->SetPendingRebind(); StateTracker::GetInstance()->SetPendingRebind();