Skip to content

Commit

Permalink
FramebufferManager: Fix restoring of EFB depth buffer
Browse files Browse the repository at this point in the history
Correct state wasn't being set.
  • Loading branch information
stenzek committed Aug 2, 2019
1 parent 7afba67 commit 25b3e5e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/Core/VideoCommon/FramebufferManager.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@ bool FramebufferManager::CompileReadbackPipelines()
if (!restore_shader) if (!restore_shader)
return false; return false;


config.depth_state = RenderState::GetAlwaysWriteDepthState();
config.framebuffer_state = GetEFBFramebufferState(); config.framebuffer_state = GetEFBFramebufferState();
config.framebuffer_state.per_sample_shading = false; config.framebuffer_state.per_sample_shading = false;
config.vertex_shader = g_shader_cache->GetScreenQuadVertexShader(); config.vertex_shader = g_shader_cache->GetScreenQuadVertexShader();
Expand Down

0 comments on commit 25b3e5e

Please sign in to comment.