aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickshadereffect_p.h
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@live.com>2016-02-21 22:12:29 -0600
committerMichael Brasser <michael.brasser@live.com>2016-03-01 14:14:13 +0000
commitac64e7b14d347aa021dde3b2ef5cfce2d5750dbe (patch)
treeed13e623bd591d13e1704b5dcf788f05d4a1fbe9 /src/quick/items/qquickshadereffect_p.h
parent99a83c8bad03a071f867bab41ffb149b38238ed6 (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/qquickshadereffect_p.h')
-rw-r--r--src/quick/items/qquickshadereffect_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick/items/qquickshadereffect_p.h b/src/quick/items/qquickshadereffect_p.h
index a5e993ee0c..4ed87e88ac 100644
--- a/src/quick/items/qquickshadereffect_p.h
+++ b/src/quick/items/qquickshadereffect_p.h
@@ -167,6 +167,7 @@ protected:
private Q_SLOTS:
void updateGeometry();
+ void updateGeometryIfAtlased();
void updateLogAndStatus(const QString &log, int status);
void sourceDestroyed(QObject *object);
void propertyChanged(int mappedId);