From bacc35c236dc5e09c7fc30631c2d2e1b008fe19f Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 9 Mar 2023 16:10:20 +0200 Subject: [PATCH] backends/virtual: Provide vertically mirrored layer buffers This makes the behavior of the virtual backend more consistent with wayland, x11, and drm backends. However, the main advantage is that it's more nicer to memfd fallback code path in screencasting plugin. --- src/backends/virtual/virtual_egl_backend.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backends/virtual/virtual_egl_backend.cpp b/src/backends/virtual/virtual_egl_backend.cpp index d43b6221fd..e016d6d48d 100644 --- a/src/backends/virtual/virtual_egl_backend.cpp +++ b/src/backends/virtual/virtual_egl_backend.cpp @@ -46,6 +46,7 @@ std::optional VirtualEglLayer::beginFrame() if (!m_texture || m_texture->size() != nativeSize) { m_fbo.reset(); m_texture = std::make_unique(GL_RGB8, nativeSize); + m_texture->setContentTransform(TextureTransform::MirrorY); m_fbo = std::make_unique(m_texture.get()); }