mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-12-25 17:45:29 +00:00
Fix blit image/view not compatible
This commit is contained in:
parent
429320aee8
commit
1598426493
|
@ -1137,8 +1137,13 @@ typename TextureCache<P>::BlitImages TextureCache<P>::GetBlitImages(
|
||||||
} while (has_deleted_images);
|
} while (has_deleted_images);
|
||||||
const ImageBase& src_image = slot_images[src_id];
|
const ImageBase& src_image = slot_images[src_id];
|
||||||
const ImageBase& dst_image = slot_images[dst_id];
|
const ImageBase& dst_image = slot_images[dst_id];
|
||||||
|
const bool native_bgr = runtime.HasNativeBgr();
|
||||||
if (GetFormatType(dst_info.format) != GetFormatType(dst_image.info.format) ||
|
if (GetFormatType(dst_info.format) != GetFormatType(dst_image.info.format) ||
|
||||||
GetFormatType(src_info.format) != GetFormatType(src_image.info.format)) {
|
GetFormatType(src_info.format) != GetFormatType(src_image.info.format) ||
|
||||||
|
!VideoCore::Surface::IsViewCompatible(dst_info.format, dst_image.info.format, false,
|
||||||
|
native_bgr) ||
|
||||||
|
!VideoCore::Surface::IsViewCompatible(src_info.format, src_image.info.format, false,
|
||||||
|
native_bgr)) {
|
||||||
// Make sure the images match the expected format.
|
// Make sure the images match the expected format.
|
||||||
do {
|
do {
|
||||||
has_deleted_images = false;
|
has_deleted_images = false;
|
||||||
|
|
Loading…
Reference in a new issue