diff options
| author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-10-21 21:31:33 +0200 |
|---|---|---|
| committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-11-16 22:11:32 +0100 |
| commit | ceace57320390fed16dae8cdae951fba8084be0a (patch) | |
| tree | 83d28111aaacd65b546d4ea7c77002963076861d /src/video_core | |
| parent | 0a3e7c6f14f414f62dcffe51506d247f644dc5c9 (diff) | |
Texture Cache: Fix blitting.
Diffstat (limited to 'src/video_core')
| -rw-r--r-- | src/video_core/texture_cache/util.cpp | 4 |
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 9922aa0cc1..ddc9fb13a7 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* if (dst && GetFormatType(dst->info.format) != SurfaceType::ColorTexture) { dst_info.format = dst->info.format; } - if (!dst && src && GetFormatType(src->info.format) != SurfaceType::ColorTexture) { + if (src && GetFormatType(src->info.format) != SurfaceType::ColorTexture) { dst_info.format = src->info.format; } - if (!src && dst && GetFormatType(dst->info.format) != SurfaceType::ColorTexture) { + if (dst && GetFormatType(dst->info.format) != SurfaceType::ColorTexture) { src_info.format = dst->info.format; } } |
