From 00d434efdcceaf09ed01a37c68af5a2c5a73db11 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Sun, 17 Jul 2022 12:35:53 +0530 Subject: [PATCH] Remove `Texture::CopyFrom` format check The formats of the textures involved in a texture were checked for equality, this broke certain copies as the presentation engine would invoke copies between textures of different yet compatible formats. Co-authored-by: PixelyIon --- app/src/main/cpp/skyline/gpu/texture/texture.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/src/main/cpp/skyline/gpu/texture/texture.cpp b/app/src/main/cpp/skyline/gpu/texture/texture.cpp index ce0ed782..3f92b8cd 100644 --- a/app/src/main/cpp/skyline/gpu/texture/texture.cpp +++ b/app/src/main/cpp/skyline/gpu/texture/texture.cpp @@ -803,8 +803,6 @@ namespace skyline::gpu { throw exception("Cannot copy from image with undefined layout"); else if (source->dimensions != dimensions) throw exception("Cannot copy from image with different dimensions"); - else if (source->format != format) - throw exception("Cannot copy from image with different format"); TRACE_EVENT("gpu", "Texture::CopyFrom");