Fix gradient artifacts on some edge cases


When static optimization is in use with mesh objects and range
gradient, and the object Y-value resolves into a texture coordinate
that is exactly on the texel boundary, the rendered fragments
of the object are not all same colors on some graphics cards,
despite all vertices having the same UV value.
Fixed by adjusting the Y-value slightly if it is close to the
boundary.

Task-number: QTRD-3370
Change-Id: Ie028602cbd9a00bb0e17049eb8f40feb8b18a6bf
Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
commit4f70d3777e036f131cf8d39e1072b276132e32a1
parent631d9bead3aac19bcc5bdbd79df54e7aa216ecff
authorMiikka Heikkinen <miikka.heikkinen@theqtcompany.com>
committerMiikka Heikkinen <miikka.heikkinen@theqtcompany.com>
commit timeTue, 14 Oct 2014 08:56:31 +0300