This repository was archived by the owner on Nov 30, 2020. It is now read-only.
Commit 252c021
committed
Fix for avoiding division-by-zero cases on iOS/Metal.
On the original code, the XYZ-xyY functions are taking max between 1e-10
to avoid division-by-zero, but it doesn't take effect on iOS/Metal
because of rounding errors, then they cause division-by-zero when nearly
black colors are given.
I pulled them up to 1e-4 because 1e-5 was not enough as far as I tried.1 parent 1c8828e commit 252c021
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
620 | 620 | | |
621 | 621 | | |
622 | 622 | | |
623 | | - | |
| 623 | + | |
624 | 624 | | |
625 | 625 | | |
626 | 626 | | |
627 | 627 | | |
628 | 628 | | |
629 | | - | |
| 629 | + | |
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
| |||
0 commit comments