diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2017-05-19 12:21:50 +0200 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2017-05-20 18:16:13 +0000 |
commit | 5ff41c101f66d0790df21f0bebf1626f8c14ffae (patch) | |
tree | 7f75433e4c0fcbf552c3a481d6438eaf44c30569 /src/location/maps | |
parent | 5767601d95e33b20962d0cd88cc6ce5c8c724a91 (diff) | |
download | qtlocation-5ff41c101f66d0790df21f0bebf1626f8c14ffae.tar.gz |
Fix building on configurations without opengl
Task-number: QTBUG-60881
Change-Id: Iffdcfe1ebfe81da9b809dceeff61fca044e94891
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/location/maps')
-rw-r--r-- | src/location/maps/qgeotiledmapscene.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/location/maps/qgeotiledmapscene.cpp b/src/location/maps/qgeotiledmapscene.cpp index c1b0d8ef..422082fc 100644 --- a/src/location/maps/qgeotiledmapscene.cpp +++ b/src/location/maps/qgeotiledmapscene.cpp @@ -606,8 +606,10 @@ void QGeoTiledMapRootNode::updateTiles(QGeoTiledMapTileContainerNode *root, } else { node->setFiltering((d->m_linearScaling || overzooming) ? QSGTexture::Linear : QSGTexture::Nearest); } +#if QT_CONFIG(opengl) if (ogl) static_cast<QSGDefaultImageNode *>(node)->setAnisotropyLevel(QSGTexture::Anisotropy16x); +#endif dirtyBits |= QSGNode::DirtyMaterial; } if (dirtyBits != 0) @@ -631,8 +633,10 @@ void QGeoTiledMapRootNode::updateTiles(QGeoTiledMapTileContainerNode *root, } else { tileNode->setFiltering((d->m_linearScaling || overzooming) ? QSGTexture::Linear : QSGTexture::Nearest); } +#if QT_CONFIG(opengl) if (ogl) static_cast<QSGDefaultImageNode *>(tileNode)->setAnisotropyLevel(QSGTexture::Anisotropy16x); +#endif root->addChild(s, tileNode); } else { delete tileNode; |