Просмотр исходного кода

Stop clearing Modified flag on DiscardData (#6591)

gdkchan 2 лет назад
Родитель
Сommit
8e74fa3456

+ 1 - 1
src/Ryujinx.Graphics.Gpu/Image/Texture.cs

@@ -573,7 +573,7 @@ namespace Ryujinx.Graphics.Gpu.Image
 
 
         /// <summary>
         /// <summary>
         /// Discards all data for this texture.
         /// 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.
         /// It should be used if the texture data will be fully overwritten by the next use.
         /// </summary>
         /// </summary>
         public void DiscardData()
         public void DiscardData()

+ 1 - 1
src/Ryujinx.Graphics.Gpu/Image/TextureGroup.cs

@@ -282,7 +282,7 @@ namespace Ryujinx.Graphics.Gpu.Image
 
 
         /// <summary>
         /// <summary>
         /// Discards all data for a given texture.
         /// 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>
         /// </summary>
         /// <param name="texture">The texture being discarded</param>
         /// <param name="texture">The texture being discarded</param>
         public void DiscardData(Texture texture)
         public void DiscardData(Texture texture)

+ 1 - 2
src/Ryujinx.Graphics.Gpu/Image/TextureGroupHandle.cs

@@ -182,11 +182,10 @@ namespace Ryujinx.Graphics.Gpu.Image
 
 
         /// <summary>
         /// <summary>
         /// Discards all data for this handle.
         /// 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>
         /// </summary>
         public void DiscardData()
         public void DiscardData()
         {
         {
-            Modified = false;
             DeferredCopy = null;
             DeferredCopy = null;
 
 
             foreach (RegionHandle handle in Handles)
             foreach (RegionHandle handle in Handles)