diff options
author | bunnei <bunneidev@gmail.com> | 2020-04-30 18:56:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-30 18:56:19 +0200 |
commit | da2b8295e117ad7dba763c78b22d8820ba0e9d84 (patch) | |
tree | cbbf79759d63968d6784fa521e822ca45a945c88 /src/video_core/renderer_vulkan/vk_rasterizer.cpp | |
parent | Merge pull request #3788 from FernandoS27/revert (diff) | |
parent | texture_cache: Reintroduce preserve_contents accurately (diff) | |
download | yuzu-da2b8295e117ad7dba763c78b22d8820ba0e9d84.tar yuzu-da2b8295e117ad7dba763c78b22d8820ba0e9d84.tar.gz yuzu-da2b8295e117ad7dba763c78b22d8820ba0e9d84.tar.bz2 yuzu-da2b8295e117ad7dba763c78b22d8820ba0e9d84.tar.lz yuzu-da2b8295e117ad7dba763c78b22d8820ba0e9d84.tar.xz yuzu-da2b8295e117ad7dba763c78b22d8820ba0e9d84.tar.zst yuzu-da2b8295e117ad7dba763c78b22d8820ba0e9d84.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_rasterizer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.cpp b/src/video_core/renderer_vulkan/vk_rasterizer.cpp index c821b1229..776053de5 100644 --- a/src/video_core/renderer_vulkan/vk_rasterizer.cpp +++ b/src/video_core/renderer_vulkan/vk_rasterizer.cpp @@ -656,7 +656,7 @@ RasterizerVulkan::Texceptions RasterizerVulkan::UpdateAttachments() { Texceptions texceptions; for (std::size_t rt = 0; rt < Maxwell::NumRenderTargets; ++rt) { if (update_rendertargets) { - color_attachments[rt] = texture_cache.GetColorBufferSurface(rt); + color_attachments[rt] = texture_cache.GetColorBufferSurface(rt, true); } if (color_attachments[rt] && WalkAttachmentOverlaps(*color_attachments[rt])) { texceptions[rt] = true; @@ -664,7 +664,7 @@ RasterizerVulkan::Texceptions RasterizerVulkan::UpdateAttachments() { } if (update_rendertargets) { - zeta_attachment = texture_cache.GetDepthBufferSurface(); + zeta_attachment = texture_cache.GetDepthBufferSurface(true); } if (zeta_attachment && WalkAttachmentOverlaps(*zeta_attachment)) { texceptions[ZETA_TEXCEPTION_INDEX] = true; |