Do not draw negative-size ShaderEffect(Source) items.
authorGunnar Sletta <gunnar.sletta@digia.com>
Tue, 28 May 2013 07:42:05 +0000 (09:42 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 28 May 2013 17:35:18 +0000 (19:35 +0200)
commit493dea89672a8b4e4e1e3149283e93c0bfbe261c
treec02918a915ae2e6c216d98ef1b488e264428e6b0
parent17b4cf5e49b95f322b5dcb39f4c122b17fd3c39f
Do not draw negative-size ShaderEffect(Source) items.

We were a bit inconsistent here. A negative size Image element would not
render at all, a negative size ShaderEffect would render mirrored
and a negative size ShaderEffectSource would trigger an assert.
Be consistent and not draw any of them.

DropShadow from QtGraphicalEffects uses both a ShaderEffectSource and
a ShaderEffect together, so keeping the behavior in ShaderEffect
would make it render incorrectly.

Task-number: QTBUG-31383
Change-Id: Ied5568d7edbc2aed96b00adfdc6aae09b6f2a7d9
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
src/quick/items/qquickshadereffect.cpp
src/quick/items/qquickshadereffectsource.cpp