mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-12 02:59:00 +00:00
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:
parent
ed03304ce7
commit
887e3830ba
10 changed files with 7 additions and 23 deletions
|
@ -1416,9 +1416,6 @@ void Renderer::SwapImpl(AbstractTexture* texture, const EFBRectangle& xfb_region
|
|||
g_texture_cache->Cleanup(frameCount);
|
||||
ProgramShaderCache::RetrieveAsyncShaders();
|
||||
|
||||
// Render to the framebuffer.
|
||||
FramebufferManager::SetFramebuffer(0);
|
||||
|
||||
RestoreAPIState();
|
||||
|
||||
g_Config.iSaveTargetId = 0;
|
||||
|
@ -1499,6 +1496,8 @@ void Renderer::ResetAPIState()
|
|||
|
||||
void Renderer::RestoreAPIState()
|
||||
{
|
||||
FramebufferManager::SetFramebuffer(0);
|
||||
|
||||
// Gets us back into a more game-like state.
|
||||
glEnable(GL_SCISSOR_TEST);
|
||||
if (g_ActiveConfig.backend_info.bSupportsDepthClamp)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue