Permalink
Browse files

Vulkan: Restore viewport/scissor state on RestoreAPIState

  • Loading branch information...
stenzek committed Oct 10, 2018
1 parent b409a87 commit 5ca18ff04e6dd69e09a5675db8f9474a51bdfcc0
Showing with 2 additions and 1 deletion.
  1. +2 −1 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<const VKFramebuffer*>(m_current_framebuffer)->TransitionForSample();
BindEFBToStateTracker();
BPFunctions::SetViewport();
BPFunctions::SetScissor();
// Instruct the state tracker to re-bind everything before the next draw
StateTracker::GetInstance()->SetPendingRebind();

0 comments on commit 5ca18ff

Please sign in to comment.