diff options
Diffstat (limited to 'src/quick/scenegraph/qsgdefaultcontext.cpp')
-rw-r--r-- | src/quick/scenegraph/qsgdefaultcontext.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/quick/scenegraph/qsgdefaultcontext.cpp b/src/quick/scenegraph/qsgdefaultcontext.cpp index 1d70c826de..f7701d8f7f 100644 --- a/src/quick/scenegraph/qsgdefaultcontext.cpp +++ b/src/quick/scenegraph/qsgdefaultcontext.cpp @@ -297,13 +297,10 @@ QSGGuiThreadShaderEffectManager *QSGDefaultContext::createGuiThreadShaderEffectM return nullptr; } -QSGShaderEffectNode *QSGDefaultContext::createShaderEffectNode(QSGRenderContext *renderContext, - QSGGuiThreadShaderEffectManager *mgr) +QSGShaderEffectNode *QSGDefaultContext::createShaderEffectNode(QSGRenderContext *renderContext) { - if (QSGRhiSupport::instance()->isRhiEnabled()) { - return new QSGRhiShaderEffectNode(static_cast<QSGDefaultRenderContext *>(renderContext), - static_cast<QSGRhiGuiThreadShaderEffectManager *>(mgr)); - } + if (QSGRhiSupport::instance()->isRhiEnabled()) + return new QSGRhiShaderEffectNode(static_cast<QSGDefaultRenderContext *>(renderContext)); return nullptr; } |