mirror of
				https://github.com/ryujinx-mirror/ryujinx.git
				synced 2025-11-04 08:18:58 -06:00 
			
		
		
		
	Stop clearing Modified flag on DiscardData (#6591)
This commit is contained in:
		@@ -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()
 | 
			
		||||
 
 | 
			
		||||
@@ -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)
 | 
			
		||||
 
 | 
			
		||||
@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user