diff --git a/src/backends/drm/egl_gbm_backend.cpp b/src/backends/drm/egl_gbm_backend.cpp index 831e09f66f..e4820bcf82 100644 --- a/src/backends/drm/egl_gbm_backend.cpp +++ b/src/backends/drm/egl_gbm_backend.cpp @@ -334,7 +334,7 @@ QSharedPointer EglGbmBackend::importFramebuffer(Output &output, const } // ImportMode::DumbBuffer if (!output.current.importSwapchain || output.current.importSwapchain->size() != size) { - output.current.importSwapchain = QSharedPointer::create(m_gpu, size, DRM_FORMAT_XRGB8888); + output.current.importSwapchain = QSharedPointer::create(m_gpu, size, renderingBackend()->drmFormat(output.output)); if (output.current.importSwapchain->isEmpty()) { output.current.importSwapchain = nullptr; }