diff options
| author | 2021-11-22 06:07:21 +0100 | |
|---|---|---|
| committer | 2021-11-22 06:07:21 +0100 | |
| commit | 08674aee87e385e5f2a3b8e1b9aa85a61e23a490 (patch) | |
| tree | 0ccca5c1a37a83096935266d93ff0b15da6daefa /src | |
| parent | Texture Cache: Correct conversion shaders. (diff) | |
| download | yuzu-08674aee87e385e5f2a3b8e1b9aa85a61e23a490.tar.gz yuzu-08674aee87e385e5f2a3b8e1b9aa85a61e23a490.tar.xz yuzu-08674aee87e385e5f2a3b8e1b9aa85a61e23a490.zip | |
Texture Cache: Fix issue with blitting 3D textures.
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/texture_cache/util.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/video_core/texture_cache/util.cpp b/src/video_core/texture_cache/util.cpp index 777503488..9b1613008 100644 --- a/src/video_core/texture_cache/util.cpp +++ b/src/video_core/texture_cache/util.cpp | |||
| @@ -1155,11 +1155,13 @@ void DeduceBlitImages(ImageInfo& dst_info, ImageInfo& src_info, const ImageBase* | |||
| 1155 | if (src) { | 1155 | if (src) { |
| 1156 | is_resolve = src->info.num_samples > 1; | 1156 | is_resolve = src->info.num_samples > 1; |
| 1157 | src_info.num_samples = src->info.num_samples; | 1157 | src_info.num_samples = src->info.num_samples; |
| 1158 | src_info.size = src->info.size; | 1158 | src_info.size.width = src->info.size.width; |
| 1159 | src_info.size.height = src->info.size.height; | ||
| 1159 | } | 1160 | } |
| 1160 | if (dst) { | 1161 | if (dst) { |
| 1161 | dst_info.num_samples = dst->info.num_samples; | 1162 | dst_info.num_samples = dst->info.num_samples; |
| 1162 | dst_info.size = dst->info.size; | 1163 | dst_info.size.width = dst->info.size.width; |
| 1164 | dst_info.size.height = dst->info.size.height; | ||
| 1163 | } | 1165 | } |
| 1164 | ASSERT(!is_resolve || dst_info.format == src_info.format); | 1166 | ASSERT(!is_resolve || dst_info.format == src_info.format); |
| 1165 | } | 1167 | } |