aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.OpenGL/TextureView.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2019-12-31 19:22:45 -0300
committerThog <thog@protonmail.com>2020-01-09 02:13:00 +0100
commit9bfb373bdf85178ef319fa4d107ae20d0a2d4a04 (patch)
tree809b39c2c15008ce62f78c023d6be113fedc189d /Ryujinx.Graphics.OpenGL/TextureView.cs
parent59fdaa744b20f91928ee3fcaf5fabfcb7b409451 (diff)
Remove more unused code
Diffstat (limited to 'Ryujinx.Graphics.OpenGL/TextureView.cs')
-rw-r--r--Ryujinx.Graphics.OpenGL/TextureView.cs36
1 files changed, 0 insertions, 36 deletions
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);