aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/scenegraph/graph/linenode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/scenegraph/graph/linenode.cpp')
-rw-r--r--examples/quick/scenegraph/graph/linenode.cpp6
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;