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.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/quick/scenegraph/graph/linenode.cpp b/examples/quick/scenegraph/graph/linenode.cpp
index 5d4d8acd20..6cdf063bb9 100644
--- a/examples/quick/scenegraph/graph/linenode.cpp
+++ b/examples/quick/scenegraph/graph/linenode.cpp
@@ -54,7 +54,7 @@
#include <QtQuick/QSGMaterial>
-class LineShader : public QSGMaterialRhiShader
+class LineShader : public QSGMaterialShader
{
public:
LineShader() {
@@ -70,7 +70,6 @@ class LineMaterial : public QSGMaterial
public:
LineMaterial()
{
- setFlag(SupportsRhiShader);
setFlag(Blending);
}
@@ -82,7 +81,6 @@ public:
QSGMaterialShader *createShader() const override
{
- Q_ASSERT(flags().testFlag(RhiShaderWanted));
return new LineShader;
}