2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

fbshare: set external format correctly

This commit is contained in:
Liam 2023-12-09 14:51:15 -05:00
parent c1924951ad
commit 8ef1fdafa2

View file

@ -171,6 +171,7 @@ void MakeGraphicBuffer(android::BufferQueueProducer& producer, u32 slot, u32 han
buffer->height = SharedBufferHeight; buffer->height = SharedBufferHeight;
buffer->stride = SharedBufferBlockLinearStride; buffer->stride = SharedBufferBlockLinearStride;
buffer->format = SharedBufferBlockLinearFormat; buffer->format = SharedBufferBlockLinearFormat;
buffer->external_format = SharedBufferBlockLinearFormat;
buffer->buffer_id = handle; buffer->buffer_id = handle;
buffer->offset = slot * SharedBufferSlotSize; buffer->offset = slot * SharedBufferSlotSize;
ASSERT(producer.SetPreallocatedBuffer(slot, buffer) == android::Status::NoError); ASSERT(producer.SetPreallocatedBuffer(slot, buffer) == android::Status::NoError);