diff options
author | gdkchan <gab.dark.100@gmail.com> | 2024-04-03 21:30:46 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-03 21:30:46 -0300 |
commit | 8e74fa34560c4a8c3de234eb3488e1d0fb6f8f6c (patch) | |
tree | 313e5f9160f9b976ea8c28118244202d02442e12 /src | |
parent | 6208c3e6f0b74873aae2ce49df8e89952ae61c5a (diff) |
Stop clearing Modified flag on DiscardData (#6591)1.1.1250
Diffstat (limited to 'src')
-rw-r--r-- | src/Ryujinx.Graphics.Gpu/Image/Texture.cs | 2 | ||||
-rw-r--r-- | src/Ryujinx.Graphics.Gpu/Image/TextureGroup.cs | 2 | ||||
-rw-r--r-- | src/Ryujinx.Graphics.Gpu/Image/TextureGroupHandle.cs | 3 |
3 files changed, 3 insertions, 4 deletions
diff --git a/src/Ryujinx.Graphics.Gpu/Image/Texture.cs b/src/Ryujinx.Graphics.Gpu/Image/Texture.cs index f1615b38..7a043b2b 100644 --- a/src/Ryujinx.Graphics.Gpu/Image/Texture.cs +++ b/src/Ryujinx.Graphics.Gpu/Image/Texture.cs @@ -573,7 +573,7 @@ namespace Ryujinx.Graphics.Gpu.Image /// <summary> /// Discards all data for this texture. - /// This clears all dirty flags, modified flags, and pending copies from other textures. + /// This clears all dirty flags and pending copies from other textures. /// It should be used if the texture data will be fully overwritten by the next use. /// </summary> public void DiscardData() diff --git a/src/Ryujinx.Graphics.Gpu/Image/TextureGroup.cs b/src/Ryujinx.Graphics.Gpu/Image/TextureGroup.cs index 34a9a9c7..97858394 100644 --- a/src/Ryujinx.Graphics.Gpu/Image/TextureGroup.cs +++ b/src/Ryujinx.Graphics.Gpu/Image/TextureGroup.cs @@ -282,7 +282,7 @@ namespace Ryujinx.Graphics.Gpu.Image /// <summary> /// Discards all data for a given texture. - /// This clears all dirty flags, modified flags, and pending copies from other textures. + /// This clears all dirty flags and pending copies from other textures. /// </summary> /// <param name="texture">The texture being discarded</param> public void DiscardData(Texture texture) diff --git a/src/Ryujinx.Graphics.Gpu/Image/TextureGroupHandle.cs b/src/Ryujinx.Graphics.Gpu/Image/TextureGroupHandle.cs index d345ec2d..0af6b7ca 100644 --- a/src/Ryujinx.Graphics.Gpu/Image/TextureGroupHandle.cs +++ b/src/Ryujinx.Graphics.Gpu/Image/TextureGroupHandle.cs @@ -182,11 +182,10 @@ namespace Ryujinx.Graphics.Gpu.Image /// <summary> /// Discards all data for this handle. - /// This clears all dirty flags, modified flags, and pending copies from other handles. + /// This clears all dirty flags and pending copies from other handles. /// </summary> public void DiscardData() { - Modified = false; DeferredCopy = null; foreach (RegionHandle handle in Handles) |