summaryrefslogtreecommitdiff
path: root/src/video_core/texture_cache
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2021-10-21 21:31:33 +0200
committerGravatar Fernando Sahmkow2021-11-16 22:11:32 +0100
commit6cdfaee7b4f3f68310e9cca755482e3e6993da10 (patch)
tree83d28111aaacd65b546d4ea7c77002963076861d /src/video_core/texture_cache
parentVulkan: Implement FXAA (diff)
downloadyuzu-6cdfaee7b4f3f68310e9cca755482e3e6993da10.tar.gz
yuzu-6cdfaee7b4f3f68310e9cca755482e3e6993da10.tar.xz
yuzu-6cdfaee7b4f3f68310e9cca755482e3e6993da10.zip
Texture Cache: Fix blitting.
Diffstat (limited to 'src/video_core/texture_cache')
-rw-r--r--src/video_core/texture_cache/util.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/texture_cache/util.cpp b/src/video_core/texture_cache/util.cpp
index 9922aa0cc..ddc9fb13a 100644
--- a/src/video_core/texture_cache/util.cpp
+++ b/src/video_core/texture_cache/util.cpp
@@ -1157,10 +1157,10 @@ void DeduceBlitImages(ImageInfo& dst_info, ImageInfo& src_info, const ImageBase*
1157 if (dst && GetFormatType(dst->info.format) != SurfaceType::ColorTexture) { 1157 if (dst && GetFormatType(dst->info.format) != SurfaceType::ColorTexture) {
1158 dst_info.format = dst->info.format; 1158 dst_info.format = dst->info.format;
1159 } 1159 }
1160 if (!dst && src && GetFormatType(src->info.format) != SurfaceType::ColorTexture) { 1160 if (src && GetFormatType(src->info.format) != SurfaceType::ColorTexture) {
1161 dst_info.format = src->info.format; 1161 dst_info.format = src->info.format;
1162 } 1162 }
1163 if (!src && dst && GetFormatType(dst->info.format) != SurfaceType::ColorTexture) { 1163 if (dst && GetFormatType(dst->info.format) != SurfaceType::ColorTexture) {
1164 src_info.format = dst->info.format; 1164 src_info.format = dst->info.format;
1165 } 1165 }
1166} 1166}