From da3fd3f71bae0677c794d11b48131823e183194c Mon Sep 17 00:00:00 2001 From: Thog Date: Fri, 15 May 2020 12:20:18 +0200 Subject: [PATCH] surfaceflinger: FreeBufferLocked doesn't reset the graphic buffer That's the job of the user on Horizon (via SetPreallocatedBuffer). --- Ryujinx.HLE/HOS/Services/SurfaceFlinger/BufferQueueCore.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/Ryujinx.HLE/HOS/Services/SurfaceFlinger/BufferQueueCore.cs b/Ryujinx.HLE/HOS/Services/SurfaceFlinger/BufferQueueCore.cs index 70d72c5a..7386bafc 100644 --- a/Ryujinx.HLE/HOS/Services/SurfaceFlinger/BufferQueueCore.cs +++ b/Ryujinx.HLE/HOS/Services/SurfaceFlinger/BufferQueueCore.cs @@ -175,8 +175,6 @@ namespace Ryujinx.HLE.HOS.Services.SurfaceFlinger public void FreeBufferLocked(int slot) { - Slots[slot].GraphicBuffer.Reset(); - if (Slots[slot].BufferState == BufferState.Acquired) { Slots[slot].NeedsCleanupOnRelease = true;