diff --git a/Ryujinx.Graphics.Gpu/Image/Texture.cs b/Ryujinx.Graphics.Gpu/Image/Texture.cs index c104e860d..847cfbfe5 100644 --- a/Ryujinx.Graphics.Gpu/Image/Texture.cs +++ b/Ryujinx.Graphics.Gpu/Image/Texture.cs @@ -137,11 +137,6 @@ namespace Ryujinx.Graphics.Gpu.Image /// public LinkedListNode CacheNode { get; set; } - /// - /// Event to fire when texture data is disposed. - /// - public event Action Disposed; - /// /// Physical memory ranges where the texture data is located. /// @@ -1448,7 +1443,6 @@ namespace Ryujinx.Graphics.Gpu.Image DisposeTextures(); HostTexture = hostTexture; - InvalidatedSequence++; } /// @@ -1603,6 +1597,8 @@ namespace Ryujinx.Graphics.Gpu.Image /// private void DisposeTextures() { + InvalidatedSequence++; + _currentData = null; HostTexture.Release(); @@ -1637,8 +1633,6 @@ namespace Ryujinx.Graphics.Gpu.Image { DisposeTextures(); - Disposed?.Invoke(this); - if (Group.Storage == this) { Group.Dispose();