diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-10-23 01:52:34 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-11-16 22:11:32 +0100 |
commit | 5c6fa8893589fd70bc743c0d0b77c0c375b24bd3 (patch) | |
tree | 73a3e1876d9d9b1243e0c4de179cd63760a2b08e /src/video_core/texture_cache/texture_cache.h | |
parent | VulkanBufferCache: Avoid adding barriers between multiple copies. (diff) | |
download | yuzu-5c6fa8893589fd70bc743c0d0b77c0c375b24bd3.tar yuzu-5c6fa8893589fd70bc743c0d0b77c0c375b24bd3.tar.gz yuzu-5c6fa8893589fd70bc743c0d0b77c0c375b24bd3.tar.bz2 yuzu-5c6fa8893589fd70bc743c0d0b77c0c375b24bd3.tar.lz yuzu-5c6fa8893589fd70bc743c0d0b77c0c375b24bd3.tar.xz yuzu-5c6fa8893589fd70bc743c0d0b77c0c375b24bd3.tar.zst yuzu-5c6fa8893589fd70bc743c0d0b77c0c375b24bd3.zip |
Diffstat (limited to 'src/video_core/texture_cache/texture_cache.h')
-rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h index f1254ef62..dd9553806 100644 --- a/src/video_core/texture_cache/texture_cache.h +++ b/src/video_core/texture_cache/texture_cache.h @@ -1810,8 +1810,8 @@ void TextureCache<P>::BindRenderTarget(ImageViewId* old_id, ImageViewId new_id) if (*old_id == new_id) { return; } - if (*old_id) { - const ImageViewBase& old_view = slot_image_views[*old_id]; + if (new_id) { + const ImageViewBase& old_view = slot_image_views[new_id]; if (True(old_view.flags & ImageViewFlagBits::PreemtiveDownload)) { uncommitted_downloads.push_back(old_view.image_id); } |