aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2021-02-01 04:30:16 -0300
committerGitHub <noreply@github.com>2021-02-01 08:30:16 +0100
commit67033ed8e05eb70860ac6af2b83deab0256c11eb (patch)
treef140c6ac5b7d78e85d201c06489784ec85f5b6f0
parent053dcfdb0572da9c03d4343a82ac69ac44e3276b (diff)
Do not flush multisample textures (#1973)
-rw-r--r--Ryujinx.Graphics.Gpu/Image/Texture.cs6
1 files changed, 6 insertions, 0 deletions
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)
{