backends/virtual: Fix format
While we are using GL_RGB8, it seems to be using 32bit pixels.
This commit is contained in:
parent
abb9b0d2cd
commit
aaae80a569
1 changed files with 2 additions and 2 deletions
|
@ -65,8 +65,8 @@ bool VirtualEglLayer::endFrame(const QRegion &renderedRegion, const QRegion &dam
|
|||
|
||||
quint32 VirtualEglLayer::format() const
|
||||
{
|
||||
// the texture format is hardcoded in VirtualEglLayer::beginFrame
|
||||
return DRM_FORMAT_RGB888;
|
||||
// While we are using GL_RGB8, it seems to be using 32bit pixels.
|
||||
return DRM_FORMAT_XBGR8888;
|
||||
}
|
||||
|
||||
VirtualEglBackend::VirtualEglBackend(VirtualBackend *b)
|
||||
|
|
Loading…
Reference in a new issue