Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write PNGs with unassociated alpha #6275

Merged
merged 2 commits into from
Mar 6, 2018
Merged

Write PNGs with unassociated alpha #6275

merged 2 commits into from
Mar 6, 2018

Conversation

jfirebaugh
Copy link
Contributor

@jfirebaugh jfirebaugh commented Mar 3, 2018

The test harness was sending the GL premultiplied pixel data directly to PNG, which expects unassociated pixel data. This led to test results that looked wrong visually, even though the rendering was correct. See the expected.png updates for examples.

(I ran an UPDATE=1 across the board, but only committed the expected.pngs for tests that were failing after the render.js change in either JS or native.)

Fixes #3771.
Fixes #3913.

@jfirebaugh jfirebaugh requested a review from lbud March 3, 2018 00:50
Copy link
Contributor

@lbud lbud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so much better!!

@jfirebaugh
Copy link
Contributor Author

Among the expecteds that I didn't commit, there are a bunch that now are slightly different from (correct) actual, but not enough to trigger pixelmatch. Maybe we should just do an across-the-board update?

@lbud
Copy link
Contributor

lbud commented Mar 5, 2018

Maybe we should just do an across-the-board update?

👍 that sounds like a good idea to maintain a reasonable error threshold for those tests.

And update almost all the expected render test results. Skipping:

combinations/fill-extrusion-translucent--background-opaque
combinations/fill-extrusion-translucent--fill-opaque
fill-outline-color/*
map-mode/static
projection/*
@jfirebaugh jfirebaugh merged commit 0d2abd7 into master Mar 6, 2018
@jfirebaugh jfirebaugh deleted the png-unassociated branch March 6, 2018 13:47
mollymerp pushed a commit that referenced this pull request Mar 6, 2018
mollymerp added a commit that referenced this pull request Mar 6, 2018
* Add regression test

* fix y coordinate of linepattern texture

* fix copy pasta

* update to reflect #6275

* update tiny diff failing tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants