Texture Cache: Fix issue with blitting 3D textures.

This commit is contained in:
Fernando Sahmkow 2021-11-22 06:07:21 +01:00
parent 1e474fb9d1
commit 08674aee87

View File

@ -1155,11 +1155,13 @@ void DeduceBlitImages(ImageInfo& dst_info, ImageInfo& src_info, const ImageBase*
if (src) { if (src) {
is_resolve = src->info.num_samples > 1; is_resolve = src->info.num_samples > 1;
src_info.num_samples = src->info.num_samples; src_info.num_samples = src->info.num_samples;
src_info.size = src->info.size; src_info.size.width = src->info.size.width;
src_info.size.height = src->info.size.height;
} }
if (dst) { if (dst) {
dst_info.num_samples = dst->info.num_samples; dst_info.num_samples = dst->info.num_samples;
dst_info.size = dst->info.size; dst_info.size.width = dst->info.size.width;
dst_info.size.height = dst->info.size.height;
} }
ASSERT(!is_resolve || dst_info.format == src_info.format); ASSERT(!is_resolve || dst_info.format == src_info.format);
} }