From cb8fdeafbcd8fef831402ee4d259914bf8dee8dc Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Mon, 27 May 2024 10:34:16 -0400 Subject: [PATCH] Cleanup present --- src/Ryujinx.Graphics.Metal/Pipeline.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/Ryujinx.Graphics.Metal/Pipeline.cs b/src/Ryujinx.Graphics.Metal/Pipeline.cs index 2d66a36f03..699bd155fb 100644 --- a/src/Ryujinx.Graphics.Metal/Pipeline.cs +++ b/src/Ryujinx.Graphics.Metal/Pipeline.cs @@ -174,10 +174,6 @@ namespace Ryujinx.Graphics.Metal public void Present(CAMetalDrawable drawable, Texture src, Extents2D srcRegion, Extents2D dstRegion, bool isLinear) { - EndCurrentPass(); - - SaveState(); - // TODO: Clean this up var textureInfo = new TextureCreateInfo((int)drawable.Texture.Width, (int)drawable.Texture.Height, (int)drawable.Texture.Depth, (int)drawable.Texture.MipmapLevelCount, (int)drawable.Texture.SampleCount, 0, 0, 0, Format.B8G8R8A8Unorm, 0, Target.Texture2D, SwizzleComponent.Red, SwizzleComponent.Green, SwizzleComponent.Blue, SwizzleComponent.Alpha); var dst = new Texture(_device, this, textureInfo, drawable.Texture, 0, 0); @@ -191,8 +187,6 @@ namespace Ryujinx.Graphics.Metal _commandBuffer = _commandQueue.CommandBuffer(); - RestoreState(); - // Cleanup dst.Dispose(); }