diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-06-17 11:34:28 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-06-17 17:42:02 +0200 |
commit | a86febf876f85d1b460463aa48ff8b319285f7ba (patch) | |
tree | 6b71d40e8fd3f378fb0d99ec56321fe1b55aeef4 /examples/quick/scenegraph/graph/linenode.cpp | |
parent | 83fb4f6743860bfb746e6243aad00513d498db4f (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/linenode.cpp')
-rw-r--r-- | examples/quick/scenegraph/graph/linenode.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/quick/scenegraph/graph/linenode.cpp b/examples/quick/scenegraph/graph/linenode.cpp index d63d8112e1..74161c8040 100644 --- a/examples/quick/scenegraph/graph/linenode.cpp +++ b/examples/quick/scenegraph/graph/linenode.cpp @@ -144,8 +144,8 @@ struct LineVertex { static const QSGGeometry::AttributeSet &attributes() { static QSGGeometry::Attribute attr[] = { - QSGGeometry::Attribute::create(0, 2, GL_FLOAT, true), - QSGGeometry::Attribute::create(1, 1, GL_FLOAT) + QSGGeometry::Attribute::create(0, 2, QSGGeometry::FloatType, true), + QSGGeometry::Attribute::create(1, 1, QSGGeometry::FloatType) }; static QSGGeometry::AttributeSet set = { 2, 3 * sizeof(float), attr }; return set; @@ -155,7 +155,7 @@ LineNode::LineNode(float size, float spread, const QColor &color) : m_geometry(attributes(), 0) { setGeometry(&m_geometry); - m_geometry.setDrawingMode(GL_TRIANGLE_STRIP); + m_geometry.setDrawingMode(QSGGeometry::DrawTriangleStrip); LineMaterial *m = new LineMaterial; m->state.color = color; |