VideoBackends: Restore the framebuffer as part of the API state

It's not often we switch out to draw to the EFB anyway.
This commit is contained in:
Stenzek committed 2018-03-01 17:31:24 +10:00
1 parent ed03304ce7
commit 887e3830ba
10 files changed
+7 -23

No files matched your search

@@ -87,9 +87,7 @@ D3DTexture2D*& FramebufferManager::GetResolvedEFBDepthTexture()
PixelShaderCache::GetDepthResolveProgram(), VertexShaderCache::GetSimpleVertexShader(),
VertexShaderCache::GetSimpleInputLayout(), GeometryShaderCache::GetCopyGeometryShader());
BindEFBRenderTarget();
g_renderer->RestoreAPIState();
return m_efb.resolved_depth_tex;
}
else