From f39c707bf98872066c19e05ec18e8cf4192a5983 Mon Sep 17 00:00:00 2001 From: Gabriel A Date: Sat, 20 Jul 2024 13:02:29 -0300 Subject: [PATCH] Remove code that is no longer necessary --- src/Ryujinx/AppHost.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Ryujinx/AppHost.cs b/src/Ryujinx/AppHost.cs index 30ba239408..0db8ef4143 100644 --- a/src/Ryujinx/AppHost.cs +++ b/src/Ryujinx/AppHost.cs @@ -384,8 +384,7 @@ namespace Ryujinx.Ava canvas.SetMatrix(matrix); canvas.DrawBitmap(bitmap, SKPoint.Empty); - SaveBitmapAsPng(bitmapToSave ?? bitmap, path); - bitmapToSave?.Dispose(); + SaveBitmapAsPng(bitmapToSave, path); Logger.Notice.Print(LogClass.Application, $"Screenshot saved to {path}", "Screenshot"); }