aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/scenegraph/graph/gridnode.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2020-06-17 11:34:28 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2020-06-17 17:42:02 +0200
commita86febf876f85d1b460463aa48ff8b319285f7ba (patch)
tree6b71d40e8fd3f378fb0d99ec56321fe1b55aeef4 /examples/quick/scenegraph/graph/gridnode.cpp
parent83fb4f6743860bfb746e6243aad00513d498db4f (diff)
Fix GL_ constant usage in examples
Change-Id: Iecfa47845edb78928b388d150a3229f8c7a93d5d Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'examples/quick/scenegraph/graph/gridnode.cpp')
-rw-r--r--examples/quick/scenegraph/graph/gridnode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/quick/scenegraph/graph/gridnode.cpp b/examples/quick/scenegraph/graph/gridnode.cpp
index f2b4ca3cf8..3597247cd4 100644
--- a/examples/quick/scenegraph/graph/gridnode.cpp
+++ b/examples/quick/scenegraph/graph/gridnode.cpp
@@ -58,7 +58,7 @@ GridNode::GridNode()
: m_geometry(QSGGeometry::defaultAttributes_Point2D(), 0)
{
setGeometry(&m_geometry);
- m_geometry.setDrawingMode(GL_LINES);
+ m_geometry.setDrawingMode(QSGGeometry::DrawLines);
setMaterial(&m_material);
m_material.setColor(Qt::gray);