From 21c196d1d90c42902555fd1604f273776972a3fa Mon Sep 17 00:00:00 2001
From: Peter Varga <pvarga@inf.u-szeged.hu>
Date: Fri, 29 Mar 2019 10:12:26 +0100
Subject: [PATCH] Fix -no-opengl build
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Change-Id: I472ff20de710b1300c1f5209f3100b5280356f45
Reviewed-by: Michael Brüning <michael.bruning@qt.io>
---
 src/core/compositor/delegated_frame_node.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/core/compositor/delegated_frame_node.cpp b/src/core/compositor/delegated_frame_node.cpp
index 4fb05051b..5f474cbfb 100644
--- a/src/core/compositor/delegated_frame_node.cpp
+++ b/src/core/compositor/delegated_frame_node.cpp
@@ -1019,6 +1019,7 @@ QSGTexture *DelegatedFrameNode::initAndHoldTexture(const CompositorResource *res
         texture->setFiltering(filtering);
         return texture.data();
     } else {
+#if QT_CONFIG(opengl)
         QSharedPointer<MailboxTexture> &texture =
             findTexture(m_sgObjects.mailboxTextures, m_previousSGObjects.mailboxTextures, resource->id);
         if (texture)
@@ -1026,6 +1027,10 @@ QSGTexture *DelegatedFrameNode::initAndHoldTexture(const CompositorResource *res
         texture = createMailboxTexture(resource, hasAlphaChannel, target);
         texture->setFiltering(filtering);
         return texture.data();
+#else
+        Q_UNREACHABLE();
+        return nullptr;
+#endif
     }
 }
 
-- 
GitLab