backends/wayland: Specify correct format for remapped primary layer buffers

We don't need the alpha channel and WaylandQPainterBufferSlot specifies
RGB32 format in its constructor.
This commit is contained in:
Vlad Zahorodnii 2022-12-19 14:47:45 +02:00
parent 30d856b9cb
commit fc36affdee

View file

@ -54,7 +54,7 @@ void WaylandQPainterPrimaryLayer::remapBuffer()
const QSize nativeSize(m_waylandOutput->geometry().size() * m_waylandOutput->scale()); const QSize nativeSize(m_waylandOutput->geometry().size() * m_waylandOutput->scale());
for (const auto &slot : m_slots) { for (const auto &slot : m_slots) {
slot->image = QImage(slot->buffer->address(), nativeSize.width(), nativeSize.height(), QImage::Format_ARGB32); slot->image = QImage(slot->buffer->address(), nativeSize.width(), nativeSize.height(), QImage::Format_RGB32);
} }
} }