diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h index e195b1e98..5aaeb16ca 100644 --- a/src/video_core/texture_cache/texture_cache.h +++ b/src/video_core/texture_cache/texture_cache.h | |||
| @@ -1137,8 +1137,13 @@ typename TextureCache<P>::BlitImages TextureCache<P>::GetBlitImages( | |||
| 1137 | } while (has_deleted_images); | 1137 | } while (has_deleted_images); |
| 1138 | const ImageBase& src_image = slot_images[src_id]; | 1138 | const ImageBase& src_image = slot_images[src_id]; |
| 1139 | const ImageBase& dst_image = slot_images[dst_id]; | 1139 | const ImageBase& dst_image = slot_images[dst_id]; |
| 1140 | const bool native_bgr = runtime.HasNativeBgr(); | ||
| 1140 | if (GetFormatType(dst_info.format) != GetFormatType(dst_image.info.format) || | 1141 | if (GetFormatType(dst_info.format) != GetFormatType(dst_image.info.format) || |
| 1141 | GetFormatType(src_info.format) != GetFormatType(src_image.info.format)) { | 1142 | GetFormatType(src_info.format) != GetFormatType(src_image.info.format) || |
| 1143 | !VideoCore::Surface::IsViewCompatible(dst_info.format, dst_image.info.format, false, | ||
| 1144 | native_bgr) || | ||
| 1145 | !VideoCore::Surface::IsViewCompatible(src_info.format, src_image.info.format, false, | ||
| 1146 | native_bgr)) { | ||
| 1142 | // Make sure the images match the expected format. | 1147 | // Make sure the images match the expected format. |
| 1143 | do { | 1148 | do { |
| 1144 | has_deleted_images = false; | 1149 | has_deleted_images = false; |