From 67033ed8e05eb70860ac6af2b83deab0256c11eb Mon Sep 17 00:00:00 2001 From: gdkchan Date: Mon, 1 Feb 2021 04:30:16 -0300 Subject: [PATCH] Do not flush multisample textures (#1973) --- Ryujinx.Graphics.Gpu/Image/Texture.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Ryujinx.Graphics.Gpu/Image/Texture.cs b/Ryujinx.Graphics.Gpu/Image/Texture.cs index 3c576cb7..6dfe4628 100644 --- a/Ryujinx.Graphics.Gpu/Image/Texture.cs +++ b/Ryujinx.Graphics.Gpu/Image/Texture.cs @@ -723,6 +723,12 @@ namespace Ryujinx.Graphics.Gpu.Image return; // Flushing this format is not supported, as it may have been converted to another host format. } + if (Info.Target == Target.Texture2DMultisample || + Info.Target == Target.Texture2DMultisampleArray) + { + return; // Flushing multisample textures is not supported, the host does not allow getting their data. + } + ITexture texture = HostTexture; if (ScaleFactor != 1f) {