full clamp in clip_color
I think this will let us land the sprite blitter change. Change-Id: Ifee3a823e1389800f35e964413d816ea0b388364 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/281787 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Mike Klein <mtklein@google.com>
This commit is contained in:
parent
2f92c93dc7
commit
06323daaed
@ -1241,8 +1241,7 @@ namespace skvm {
|
||||
, lu + ((c-lu)*( lu)) / (lu-mn));
|
||||
c = select(mx > a, lu + ((c-lu)*(a-lu)) / (mx-lu)
|
||||
, c);
|
||||
// Sometimes without this we may dip just a little negative.
|
||||
return max(c, 0.0f);
|
||||
return clamp01(c); // May be a little negative, or worse, NaN.
|
||||
};
|
||||
*r = clip(*r);
|
||||
*g = clip(*g);
|
||||
|
Loading…
Reference in New Issue
Block a user