소스 검색

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.
Thog 6 년 전
부모
커밋
21a0b0ebeb
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      Ryujinx.HLE/HOS/Services/SurfaceFlinger/BufferQueueProducer.cs

+ 1 - 0
Ryujinx.HLE/HOS/Services/SurfaceFlinger/BufferQueueProducer.cs

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