aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@jollamobile.com>2014-07-28 10:11:05 +0200
committerGunnar Sletta <gunnar.sletta@jollamobile.com>2014-07-28 13:03:50 +0200
commitdb7d66077e92e1ea4231d09c67bb14536e792cd6 (patch)
treeab782d091f9f50f880e3152b2bd95d5531a2ec3c /src
parent254de4f7df1b15dd3a12c9334bdfe071b85db0ad (diff)
Don't try to draw shader effect sources with dims < 0.
Task-number: QTBUG-40099 Change-Id: I0eb0d877963a9394765ec8e0f10569a98a263743 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/quick/items/qquickshadereffectsource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/items/qquickshadereffectsource.cpp b/src/quick/items/qquickshadereffectsource.cpp
index ebeff599f4..99d4979073 100644
--- a/src/quick/items/qquickshadereffectsource.cpp
+++ b/src/quick/items/qquickshadereffectsource.cpp
@@ -1031,7 +1031,7 @@ QSGNode *QQuickShaderEffectSource::updatePaintNode(QSGNode *oldNode, UpdatePaint
}
// Don't create the paint node if we're not spanning any area
- if (width() == 0 || height() == 0) {
+ if (width() <= 0 || height() <= 0) {
delete oldNode;
return 0;
}