diff options
author | Michael Brasser <michael.brasser@live.com> | 2016-02-21 22:12:29 -0600 |
---|---|---|
committer | Michael Brasser <michael.brasser@live.com> | 2016-03-01 14:14:13 +0000 |
commit | ac64e7b14d347aa021dde3b2ef5cfce2d5750dbe (patch) | |
tree | ed13e623bd591d13e1704b5dcf788f05d4a1fbe9 /src/quick/items/qquickshadereffectnode.cpp | |
parent | 99a83c8bad03a071f867bab41ffb149b38238ed6 (diff) |
Ensure ShaderEffect correctly updates with supportsAtlasTexture.
Given a simple ShaderEffect with supportsAtlasTexture:
ShaderEffect {
property variant source: myImage
supportsAtlasTextures: true
}
ensure the atlas subrect used by the ShaderEffect is updated if
myImage.source changes.
Change-Id: I4560b80ba38c3487b16f53411451fb9891920738
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Diffstat (limited to 'src/quick/items/qquickshadereffectnode.cpp')
-rw-r--r-- | src/quick/items/qquickshadereffectnode.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick/items/qquickshadereffectnode.cpp b/src/quick/items/qquickshadereffectnode.cpp index 081e572e3b..954aa6c67b 100644 --- a/src/quick/items/qquickshadereffectnode.cpp +++ b/src/quick/items/qquickshadereffectnode.cpp @@ -491,6 +491,7 @@ QQuickShaderEffectNode::~QQuickShaderEffectNode() void QQuickShaderEffectNode::markDirtyTexture() { markDirty(DirtyMaterial); + Q_EMIT dirtyTexture(); } void QQuickShaderEffectNode::textureProviderDestroyed(QObject *object) |