diff options
Diffstat (limited to 'src/declarative/items/qsgshadereffectsource.cpp')
-rw-r--r-- | src/declarative/items/qsgshadereffectsource.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/items/qsgshadereffectsource.cpp b/src/declarative/items/qsgshadereffectsource.cpp index 24e2be37f4..c4c09868d2 100644 --- a/src/declarative/items/qsgshadereffectsource.cpp +++ b/src/declarative/items/qsgshadereffectsource.cpp @@ -214,8 +214,8 @@ void QSGShaderEffectTexture::grab() return; } QSGNode *root = m_item; - while (root->childCount() && root->type() != QSGNode::RootNodeType) - root = root->childAtIndex(0); + while (root->firstChild() && root->type() != QSGNode::RootNodeType) + root = root->firstChild(); if (root->type() != QSGNode::RootNodeType) return; |