From aaae80a569a9197c89060156cef176830dd5fc71 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Mon, 27 Mar 2023 16:45:37 +0200 Subject: [PATCH] backends/virtual: Fix format While we are using GL_RGB8, it seems to be using 32bit pixels. --- src/backends/virtual/virtual_egl_backend.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backends/virtual/virtual_egl_backend.cpp b/src/backends/virtual/virtual_egl_backend.cpp index d7f1e9569b..4719418aae 100644 --- a/src/backends/virtual/virtual_egl_backend.cpp +++ b/src/backends/virtual/virtual_egl_backend.cpp @@ -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)