Vulkan: Restore viewport/scissor state on RestoreAPIState
This commit is contained in:
parent
b409a87d1a
commit
5ca18ff04e
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue