diff options
author | Fernando S <fsahmkow27@gmail.com> | 2021-07-19 03:21:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-19 03:21:25 +0200 |
commit | 053860d9cb44a81ed3f795ae261fa62b10d0816e (patch) | |
tree | 597514ad5fae28b4630646ee390df89522d04de3 /src/video_core | |
parent | Merge pull request #6669 from ReinUsesLisp/fix-samples-sizes (diff) | |
parent | texture_cache: Always prepare image views on render targets (diff) | |
download | yuzu-053860d9cb44a81ed3f795ae261fa62b10d0816e.tar yuzu-053860d9cb44a81ed3f795ae261fa62b10d0816e.tar.gz yuzu-053860d9cb44a81ed3f795ae261fa62b10d0816e.tar.bz2 yuzu-053860d9cb44a81ed3f795ae261fa62b10d0816e.tar.lz yuzu-053860d9cb44a81ed3f795ae261fa62b10d0816e.tar.xz yuzu-053860d9cb44a81ed3f795ae261fa62b10d0816e.tar.zst yuzu-053860d9cb44a81ed3f795ae261fa62b10d0816e.zip |
Diffstat (limited to 'src/video_core')
-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; |