aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@sletta.org>2016-03-02 17:04:43 +0100
committerGunnar Sletta <gunnar@sletta.org>2016-03-04 08:47:37 +0000
commit617b0385f34f0c515694c703ddf94395197859fb (patch)
tree0b6a284c44e93422b6fe31696632c405cfd723e4 /src
parent24f3fd69a2e953619c48b4a632262ce8419fee40 (diff)
Make ShaderEffectSource work with SourceProxy when sourceRect is unset.
Task-number: QTBUG-51519 Change-Id: I1250a2faf6b970fc60bd383294edd4fa44819856 Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r--src/effects/private/qgfxsourceproxy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/effects/private/qgfxsourceproxy.cpp b/src/effects/private/qgfxsourceproxy.cpp
index bd55ff0..9ec214e 100644
--- a/src/effects/private/qgfxsourceproxy.cpp
+++ b/src/effects/private/qgfxsourceproxy.cpp
@@ -155,7 +155,7 @@ void QGfxSourceProxy::updatePolish()
} else if (childless && interpOk) {
if (shaderSource) {
- if (shaderSource->sourceRect() == m_sourceRect)
+ if (shaderSource->sourceRect() == m_sourceRect || m_sourceRect.isEmpty())
direct = true;
} else if (!padded && ((image && image->fillMode() == QQuickImage::Stretch)