Commit 686a322c authored by Committed by Eric Anholt
Fix the bug caused by gradient picture set the stops at the same percentage.
Fix the bug caused by gradient picture set the stops at the same percentage. The (stops[i] - stops[i-1]) will be used as divisor in the shader, which will cause problem. We just keep the later one if stops[i] == stops[i-1]. Signed-off-by: Junyan He <email@example.com> Signed-off-by: Zhigang Gong <firstname.lastname@example.org>
Showing with 27 additions and 18 deletions