summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2017-06-15 16:38:48 +0200
committerPaolo Angelelli <paolo.angelelli@qt.io>2017-06-18 08:04:47 +0000
commit0871241358ae3d98c9143b9b6a308ac4914712f2 (patch)
treed39b8ead14206b9bf3552b04050fd3560fd7b130
parent37fd1d8a970870698b887cc3e7aa7f2864bfafcb (diff)
Fix compilation error without opengl
If opengl is not present, now that warnings are error, Location fails to build due to an unused ogl variable. Change-Id: Id1e9a1f4da8bc31a65e29b3dd2770250284d02bb Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
-rw-r--r--src/location/maps/qgeotiledmapscene.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/location/maps/qgeotiledmapscene.cpp b/src/location/maps/qgeotiledmapscene.cpp
index 422082fc..ab15e37b 100644
--- a/src/location/maps/qgeotiledmapscene.cpp
+++ b/src/location/maps/qgeotiledmapscene.cpp
@@ -609,6 +609,8 @@ void QGeoTiledMapRootNode::updateTiles(QGeoTiledMapTileContainerNode *root,
#if QT_CONFIG(opengl)
if (ogl)
static_cast<QSGDefaultImageNode *>(node)->setAnisotropyLevel(QSGTexture::Anisotropy16x);
+#else
+ Q_UNUSED(ogl)
#endif
dirtyBits |= QSGNode::DirtyMaterial;
}