1
0
Fork 1
forked from suyu/suyu

Merge pull request #6218 from lioncash/tcache

texture_cache/util: Fix src being used instead of dst within DeduceBlitImages case
This commit is contained in:
bunnei 2021-04-20 11:56:40 -07:00 committed by GitHub
commit 8cdd86fa25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1139,7 +1139,7 @@ void DeduceBlitImages(ImageInfo& dst_info, ImageInfo& src_info, const ImageBase*
dst_info.format = src->info.format;
}
if (!src && dst && GetFormatType(dst->info.format) != SurfaceType::ColorTexture) {
src_info.format = src->info.format;
src_info.format = dst->info.format;
}
}