diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-09-23 03:14:10 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-09-23 03:49:10 +0200 |
commit | 60a39805615fb0480eb57416f5e9ec17e7c91ce4 (patch) | |
tree | 8f49ff1df003f24de667163d70132def81b665cb /src/video_core/texture_cache/texture_cache.h | |
parent | Merge pull request #7003 from ameerj/unlocked-present-mode (diff) | |
download | yuzu-60a39805615fb0480eb57416f5e9ec17e7c91ce4.tar yuzu-60a39805615fb0480eb57416f5e9ec17e7c91ce4.tar.gz yuzu-60a39805615fb0480eb57416f5e9ec17e7c91ce4.tar.bz2 yuzu-60a39805615fb0480eb57416f5e9ec17e7c91ce4.tar.lz yuzu-60a39805615fb0480eb57416f5e9ec17e7c91ce4.tar.xz yuzu-60a39805615fb0480eb57416f5e9ec17e7c91ce4.tar.zst yuzu-60a39805615fb0480eb57416f5e9ec17e7c91ce4.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h index 24b809242..c6e50bb5f 100644 --- a/src/video_core/texture_cache/texture_cache.h +++ b/src/video_core/texture_cache/texture_cache.h @@ -216,6 +216,7 @@ void TextureCache<P>::UpdateRenderTargets(bool is_clear) { BindRenderTarget(&render_targets.depth_buffer_id, FindDepthBuffer(is_clear)); } const ImageViewId depth_buffer_id = render_targets.depth_buffer_id; + PrepareImageView(depth_buffer_id, true, is_clear && IsFullClear(depth_buffer_id)); for (size_t index = 0; index < NUM_RT; ++index) { @@ -225,6 +226,8 @@ void TextureCache<P>::UpdateRenderTargets(bool is_clear) { maxwell3d.regs.render_area.width, maxwell3d.regs.render_area.height, }; + + flags[Dirty::DepthBiasGlobal] = true; } template <class P> |