Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
...instead of rendering to a core graphics context and then copying the context's buffer. Seems like our alpha un-premultiply logic is no longer taking affect: https://github.com/rive-app/rive/blob/1c9233455851e5d346c4c97b01fdf74a5966017d/packages/runtime_ios/Source/Renderer/RenderContextManager.mm#L74-L82 Expected: <img src="https://rive-public-testing.s3.us-west-1.amazonaws.com/golden-tests/ios/2024-07-31/127/golden/mesh.png"/> Currently: <img src="https://rive-public-testing.s3.us-west-1.amazonaws.com/golden-tests/ios/2024-07-31/127/iphone-15-pro-max/mesh.png"/> Thread with details here: https://2dimensions.slack.com/archives/C06ER4J62BA/p1722438338690329 This fixes the issue by extracting the decoded PNG bytes directly (which are un-premultiplied). Diffs= 714b8894f Decode image data directly on iOS (#7820) Co-authored-by: Chris Dalton <[email protected]> Co-authored-by: Luigi Rosso <[email protected]>
- Loading branch information