0
0
Fork 0

surfaceflinger: FreeBufferLocked doesn't reset the graphic buffer

That's the job of the user on Horizon (via SetPreallocatedBuffer).
This commit is contained in:
Thog 2020-05-15 12:20:18 +02:00
parent ba4830293e
commit da3fd3f71b

View file

@ -175,8 +175,6 @@ namespace Ryujinx.HLE.HOS.Services.SurfaceFlinger
public void FreeBufferLocked(int slot) public void FreeBufferLocked(int slot)
{ {
Slots[slot].GraphicBuffer.Reset();
if (Slots[slot].BufferState == BufferState.Acquired) if (Slots[slot].BufferState == BufferState.Acquired)
{ {
Slots[slot].NeedsCleanupOnRelease = true; Slots[slot].NeedsCleanupOnRelease = true;