Explorar el Código

fbshare: set external format correctly

Liam hace 2 años
padre
commit
8ef1fdafa2
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/core/hle/service/nvnflinger/fb_share_buffer_manager.cpp

+ 1 - 0
src/core/hle/service/nvnflinger/fb_share_buffer_manager.cpp

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