diff options
author | Peter Varga <pvarga@inf.u-szeged.hu> | 2019-03-29 10:12:26 +0100 |
---|---|---|
committer | Peter Varga <pvarga@inf.u-szeged.hu> | 2019-03-29 14:11:36 +0000 |
commit | 21c196d1d90c42902555fd1604f273776972a3fa (patch) | |
tree | 9a8dd924543802a7e9a8a55576891e88877640ca /src/core | |
parent | 8a0c59510c3be2ef5e880f9486f22a9533e00377 (diff) |
Fix -no-opengl build
Change-Id: I472ff20de710b1300c1f5209f3100b5280356f45
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/compositor/delegated_frame_node.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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 } } |