diff options
Diffstat (limited to 'examples/quick/scenegraph/twotextureproviders/xorblender.cpp')
-rw-r--r-- | examples/quick/scenegraph/twotextureproviders/xorblender.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/quick/scenegraph/twotextureproviders/xorblender.cpp b/examples/quick/scenegraph/twotextureproviders/xorblender.cpp index 9971f202a7..cb61679141 100644 --- a/examples/quick/scenegraph/twotextureproviders/xorblender.cpp +++ b/examples/quick/scenegraph/twotextureproviders/xorblender.cpp @@ -78,7 +78,7 @@ public: } state; }; -class XorBlendRhiShader : public QSGMaterialRhiShader +class XorBlendRhiShader : public QSGMaterialShader { public: XorBlendRhiShader(); @@ -90,13 +90,11 @@ public: XorBlendMaterial::XorBlendMaterial() { - setFlag(SupportsRhiShader); setFlag(Blending); } QSGMaterialShader *XorBlendMaterial::createShader() const { - Q_ASSERT(flags().testFlag(RhiShaderWanted)); return new XorBlendRhiShader; } |