From 9bfb373bdf85178ef319fa4d107ae20d0a2d4a04 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Tue, 31 Dec 2019 19:22:45 -0300 Subject: Remove more unused code --- Ryujinx.Graphics.OpenGL/TextureView.cs | 36 ---------------------------------- 1 file changed, 36 deletions(-) (limited to 'Ryujinx.Graphics.OpenGL/TextureView.cs') diff --git a/Ryujinx.Graphics.OpenGL/TextureView.cs b/Ryujinx.Graphics.OpenGL/TextureView.cs index f533404b..563e0ca6 100644 --- a/Ryujinx.Graphics.OpenGL/TextureView.cs +++ b/Ryujinx.Graphics.OpenGL/TextureView.cs @@ -130,24 +130,12 @@ namespace Ryujinx.Graphics.OpenGL } } - public int GetStorageDebugId() - { - return _parent.GetHashCode(); - } - public void CopyTo(ITexture destination, int firstLayer, int firstLevel) { TextureView destinationView = (TextureView)destination; TextureCopyUnscaled.Copy(this, destinationView, firstLayer, firstLevel); - int width = Math.Min(Width, destinationView.Width); - int height = Math.Min(Height, destinationView.Height); - - int depth = Math.Min(_info.GetDepthOrLayers(), destinationView._info.GetDepthOrLayers()); - - int levels = Math.Min(_info.Levels, destinationView._info.Levels); - if (destinationView._emulatedViewParent != null) { TextureCopyUnscaled.Copy( @@ -415,32 +403,8 @@ namespace Ryujinx.Graphics.OpenGL GL.BindTexture(target, Handle); } - public void Acquire() - { - _acquired = true; - } - - public void Release() - { - _acquired = false; - - if (_pendingDelete) - { - _pendingDelete = false; - - Dispose(); - } - } - public void Dispose() { - if (_acquired) - { - _pendingDelete = true; - - return; - } - if (Handle != 0) { GL.DeleteTexture(Handle); -- cgit v1.2.3