Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Metal): fix incorrect premultiplication of colors (#5172)
`load_color` was multiplying the alpha channel by itself as well, rather than just the `rgb` channels. Also made sure to divide alpha out before applying gamma encoding back to text color when not using linear blending, which was another source of error. Probably fixes the problem observed in #5133 -- I couldn't reproduce the exact color shift, but did see a similar one with some of my test colors. This most visibly affects dimmed text since it uses an alpha of less than 1 for the text color.
- Loading branch information