diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-06-02 01:05:55 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-07-18 05:49:32 +0200 |
commit | cb08e5bdd25a448cb44c9fd8f46ef89cfd28e7bc (patch) | |
tree | 94febf33c2cf97926a6357f8b939a146167e8def /src/video_core/texture_cache/texture_cache.h | |
parent | Merge pull request #6647 from lat9nq/specify-system-path (diff) | |
download | yuzu-cb08e5bdd25a448cb44c9fd8f46ef89cfd28e7bc.tar yuzu-cb08e5bdd25a448cb44c9fd8f46ef89cfd28e7bc.tar.gz yuzu-cb08e5bdd25a448cb44c9fd8f46ef89cfd28e7bc.tar.bz2 yuzu-cb08e5bdd25a448cb44c9fd8f46ef89cfd28e7bc.tar.lz yuzu-cb08e5bdd25a448cb44c9fd8f46ef89cfd28e7bc.tar.xz yuzu-cb08e5bdd25a448cb44c9fd8f46ef89cfd28e7bc.tar.zst yuzu-cb08e5bdd25a448cb44c9fd8f46ef89cfd28e7bc.zip |
Diffstat (limited to 'src/video_core/texture_cache/texture_cache.h')
-rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h index 01de2d498..85ce06d56 100644 --- a/src/video_core/texture_cache/texture_cache.h +++ b/src/video_core/texture_cache/texture_cache.h @@ -599,6 +599,12 @@ void TextureCache<P>::UpdateRenderTargets(bool is_clear) { using namespace VideoCommon::Dirty; auto& flags = maxwell3d.dirty.flags; if (!flags[Dirty::RenderTargets]) { + for (size_t index = 0; index < NUM_RT; ++index) { + ImageViewId& color_buffer_id = render_targets.color_buffer_ids[index]; + PrepareImageView(color_buffer_id, true, is_clear && IsFullClear(color_buffer_id)); + } + const ImageViewId depth_buffer_id = render_targets.depth_buffer_id; + PrepareImageView(depth_buffer_id, true, is_clear && IsFullClear(depth_buffer_id)); return; } flags[Dirty::RenderTargets] = false; |