summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@nokia.com>2010-12-05 19:57:21 +0100
committerGunnar Sletta <gunnar.sletta@nokia.com>2010-12-05 19:57:21 +0100
commit1c07ca22d09cda06685de3bdd5a11934bb3c925d (patch)
tree05e37d4abf61c599c4db59f41ddda4e36b3d850b
parent3120b0862acd23cb7f76105c29c53aa280d53852 (diff)
use the static context until we have a better place to get it
-rw-r--r--src/effects/shadereffectitem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/effects/shadereffectitem.cpp b/src/effects/shadereffectitem.cpp
index 1d23f53..b6668e5 100644
--- a/src/effects/shadereffectitem.cpp
+++ b/src/effects/shadereffectitem.cpp
@@ -769,7 +769,7 @@ void ShaderEffectItem::setSource(QVariant var, int index)
if (source.ownedByEffect)
delete source.source;
source.source = new ShaderEffectSource;
- source.source->setSceneGraphContext(QxItemPrivate::get(this)->view->sceneGraphContext());
+ source.source->setSceneGraphContext(QSGContext::current);
source.ownedByEffect = true;
source.source->setSourceImage(url);
}
@@ -780,7 +780,7 @@ void ShaderEffectItem::setSource(QVariant var, int index)
if (source.ownedByEffect)
delete source.source;
source.source = new ShaderEffectSource;
- source.source->setSceneGraphContext(QxItemPrivate::get(this)->view->sceneGraphContext());
+ source.source->setSceneGraphContext(QSGContext::current);
source.ownedByEffect = true;
source.source->setSourceItem(static_cast<QxItem *>(obj));
break;