Fix: basegradient applied incorrectly to surface
When surface data contains NaN/Inf values,
the basegradient might get applied incorrectly.
Fixed the error by adding check for NaN/Inf in
getNormalizedVertex.
Pick-to: 6.1
Fixes: QTBUG-78767
Change-Id: I94d850f8ed21bc98dcbc4ba26b02989c1c1bf90b
Reviewed-by: Janne Koskinen <janne.p.koskinen@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
| commit | 55bd8fbf38d3eede7ae7cf0eed357117e9eeba98 |
| parent | 9028a9f2f846939891b1f233c47d6feddaf3a021 |
| author | Sami Varanka <sami.varanka@qt.io> |
| committer | Sami Varanka <sami.varanka@qt.io> |
| commit time | Tue, 3 Aug 2021 10:37:10 +0300 |