1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-11-11 00:16:39 +00:00

SurfaceFlinger: Invalid GraphicBuffer in SetPreallocatedBuffer (#1145)

This invalidate the GraphicBuffer on the consumer side when
SetPreallocatedBuffer is called on a buffer slot.

This fix rendering issues on games with a dynamic resolution like Yoshi
Crafted World.
This commit is contained in:
Thog 2020-04-22 21:18:53 +02:00 committed by GitHub
parent ff86494d68
commit 21a0b0ebeb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -593,6 +593,7 @@ namespace Ryujinx.HLE.HOS.Services.SurfaceFlinger
Core.Slots[slot].BufferState = BufferState.Free; Core.Slots[slot].BufferState = BufferState.Free;
Core.Slots[slot].Fence = AndroidFence.NoFence; Core.Slots[slot].Fence = AndroidFence.NoFence;
Core.Slots[slot].RequestBufferCalled = false; Core.Slots[slot].RequestBufferCalled = false;
Core.Slots[slot].AcquireCalled = false;
Core.Slots[slot].NeedsCleanupOnRelease = false; Core.Slots[slot].NeedsCleanupOnRelease = false;
Core.Slots[slot].FrameNumber = 0; Core.Slots[slot].FrameNumber = 0;