From b522bbc8fcf5f8353ad1b0f3441f687958c34498 Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Wed, 27 Apr 2022 16:16:07 +0200 Subject: [PATCH] backends/drm: fix build with HAVE_GBM_BO_GET_FD_FOR_PLANE=0 --- src/backends/drm/egl_gbm_layer_surface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/drm/egl_gbm_layer_surface.cpp b/src/backends/drm/egl_gbm_layer_surface.cpp index c20978713c..9d93a5b906 100644 --- a/src/backends/drm/egl_gbm_layer_surface.cpp +++ b/src/backends/drm/egl_gbm_layer_surface.cpp @@ -168,7 +168,7 @@ bool EglGbmLayerSurface::createGbmSurface(const QSize &size, uint32_t format, co if (!allowModifiers) { #else // modifiers have to be disabled with multi-gpu if gbm_bo_get_fd_for_plane is not available - if (!allowModifiers || m_pipeline->gpu() != m_eglBackend->gpu()) { + if (!allowModifiers || m_gpu != m_eglBackend->gpu()) { #endif int flags = GBM_BO_USE_RENDERING; if (m_gpu == m_eglBackend->gpu()) {