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:
parent
30d856b9cb
commit
fc36affdee
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue