From 654e617fe78b0f5cc86d0bcf0625301abff168f5 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sun, 29 Dec 2019 14:41:50 -0300 Subject: Some code cleanup --- Ryujinx.Graphics.Gpu/Engine/MethodCopyTexture.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Ryujinx.Graphics.Gpu/Engine/MethodCopyTexture.cs') diff --git a/Ryujinx.Graphics.Gpu/Engine/MethodCopyTexture.cs b/Ryujinx.Graphics.Gpu/Engine/MethodCopyTexture.cs index 1b47eac2..cdfd36df 100644 --- a/Ryujinx.Graphics.Gpu/Engine/MethodCopyTexture.cs +++ b/Ryujinx.Graphics.Gpu/Engine/MethodCopyTexture.cs @@ -3,6 +3,8 @@ using Ryujinx.Graphics.Gpu.State; namespace Ryujinx.Graphics.Gpu.Engine { + using Texture = Image.Texture; + partial class Methods { private void CopyTexture(GpuState state, int argument) @@ -10,7 +12,7 @@ namespace Ryujinx.Graphics.Gpu.Engine var dstCopyTexture = state.Get(MethodOffset.CopyDstTexture); var srcCopyTexture = state.Get(MethodOffset.CopySrcTexture); - Image.Texture srcTexture = _textureManager.FindOrCreateTexture(srcCopyTexture); + Texture srcTexture = TextureManager.FindOrCreateTexture(srcCopyTexture); if (srcTexture == null) { @@ -25,7 +27,7 @@ namespace Ryujinx.Graphics.Gpu.Engine dstCopyTexture.Format = RtFormat.D32Float; } - Image.Texture dstTexture = _textureManager.FindOrCreateTexture(dstCopyTexture); + Texture dstTexture = TextureManager.FindOrCreateTexture(dstCopyTexture); if (dstTexture == null) { @@ -76,7 +78,7 @@ namespace Ryujinx.Graphics.Gpu.Engine { srcCopyTexture.Height++; - srcTexture = _textureManager.FindOrCreateTexture(srcCopyTexture); + srcTexture = TextureManager.FindOrCreateTexture(srcCopyTexture); srcRegion = new Extents2D( srcRegion.X1 - srcTexture.Info.Width, -- cgit v1.2.3