summaryrefslogtreecommitdiffstats
path: root/src/imports/location/qdeclarativepolygonmapitem.cpp
diff options
context:
space:
mode:
authorAndy Nichols <andy.nichols@theqtcompany.com>2016-06-23 20:21:14 +0200
committerAndy Nichols <andy.nichols@qt.io>2016-06-24 13:42:27 +0000
commit17ab3e355ee6c16099139d601960b4212840e44c (patch)
treefe9c78517b93bb625d73164d5fd33b0d98c558da /src/imports/location/qdeclarativepolygonmapitem.cpp
parent05abf629c9e55c786a909ac9f729a8c3784e95a4 (diff)
Enable building with QT_NO_OPENGL defined by using QSGGeometry Enums
Rather than use OpenGL Enums directly in the code, now it is possible to use graphics system agnostic defines for building geometry for when the OpenGL headers are not available. QtLocation has been ported to use these new Enums. Change-Id: Ica6793e33cb7df1c9568681e478974aa9fefe156 Reviewed-by: Paolo Angelelli <paolo.angelelli@theqtcompany.com> Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/imports/location/qdeclarativepolygonmapitem.cpp')
-rw-r--r--src/imports/location/qdeclarativepolygonmapitem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/location/qdeclarativepolygonmapitem.cpp b/src/imports/location/qdeclarativepolygonmapitem.cpp
index 6fdef816..5353d3ab 100644
--- a/src/imports/location/qdeclarativepolygonmapitem.cpp
+++ b/src/imports/location/qdeclarativepolygonmapitem.cpp
@@ -653,7 +653,7 @@ MapPolygonNode::MapPolygonNode() :
geometry_(QSGGeometry::defaultAttributes_Point2D(), 0),
blocked_(true)
{
- geometry_.setDrawingMode(GL_TRIANGLES);
+ geometry_.setDrawingMode(QSGGeometry::DrawTriangles);
QSGGeometryNode::setMaterial(&fill_material_);
QSGGeometryNode::setGeometry(&geometry_);