aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/scenegraph/graph/noisynode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/scenegraph/graph/noisynode.cpp')
-rw-r--r--examples/quick/scenegraph/graph/noisynode.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/quick/scenegraph/graph/noisynode.cpp b/examples/quick/scenegraph/graph/noisynode.cpp
index c39e775e98..c35b4ee01e 100644
--- a/examples/quick/scenegraph/graph/noisynode.cpp
+++ b/examples/quick/scenegraph/graph/noisynode.cpp
@@ -58,7 +58,7 @@
#define NOISE_SIZE 64
-class NoisyShader : public QSGMaterialRhiShader
+class NoisyShader : public QSGMaterialShader
{
public:
NoisyShader() {
@@ -76,7 +76,6 @@ class NoisyMaterial : public QSGMaterial
public:
NoisyMaterial()
{
- setFlag(SupportsRhiShader);
setFlag(Blending);
}
@@ -93,7 +92,6 @@ public:
QSGMaterialShader *createShader() const override
{
- Q_ASSERT(flags().testFlag(RhiShaderWanted));
return new NoisyShader;
}