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

Make the desktop no longer show through when alpha blending is involved for borderless windows on the Mac. #237

Merged
merged 1 commit into from Mar 16, 2016

Conversation

@pcwalton
Copy link
Collaborator

pcwalton commented Mar 12, 2016

This was because the blend function was
GL_SRC_ALPHA/GL_ONE_MINUS_SRC_ALPHA for both RGB and alpha, and that
was incorrect for alpha, since a destination alpha of 1.0 and a source
alpha < 1.0 should result in an alpha of 1.0.

r? @glennw

for borderless windows on the Mac.

This was because the blend function was
`GL_SRC_ALPHA`/`GL_ONE_MINUS_SRC_ALPHA` for both RGB and alpha, and that
was incorrect for alpha, since a destination alpha of 1.0 and a source
alpha < 1.0 should result in an alpha of 1.0.
@pcwalton
Copy link
Collaborator Author

pcwalton commented Mar 12, 2016

@paulrouget
Copy link
Collaborator

paulrouget commented Mar 14, 2016

Appears to work well here.

@paulrouget
Copy link
Collaborator

paulrouget commented Mar 14, 2016

@glennw
Copy link
Member

glennw commented Mar 15, 2016

@pcwalton This sounds right - could we just check that running against the mozilla/ reftests dir and webrender-demos doesn't introduce any regressions?

@pcwalton
Copy link
Collaborator Author

pcwalton commented Mar 16, 2016

@glennw Checked those tests. They seem fine. (Some of them fail for me, but I inspected them manually and they look fine. It looks like a problem with the harness, probably pre-existing and maybe Mac-specific.)

@glennw
Copy link
Member

glennw commented Mar 16, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Mar 16, 2016

📌 Commit 8d191d1 has been approved by glennw

@bors-servo
Copy link
Contributor

bors-servo commented Mar 16, 2016

Testing commit 8d191d1 with merge ab1c795...

bors-servo added a commit that referenced this pull request Mar 16, 2016
Make the desktop no longer show through when alpha blending is involved for borderless windows on the Mac.

This was because the blend function was
`GL_SRC_ALPHA`/`GL_ONE_MINUS_SRC_ALPHA` for both RGB and alpha, and that
was incorrect for alpha, since a destination alpha of 1.0 and a source
alpha < 1.0 should result in an alpha of 1.0.

r? @glennw
@bors-servo
Copy link
Contributor

bors-servo commented Mar 16, 2016

☀️ Test successful - travis

@bors-servo bors-servo merged commit 8d191d1 into servo:master Mar 16, 2016
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@pcwalton pcwalton deleted the pcwalton:alpha-shows-through branch Mar 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.