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

Add alpha option to bind_to_gl_texture #324

Merged
merged 1 commit into from Jul 17, 2019
Merged

Conversation

@zakorgy
Copy link
Contributor

zakorgy commented Jul 17, 2019

This PR is related to servo/servo#23509.
If the WebGL context we use doesn't have alpha, the underlying IOsurface should use RGB internal format instead of RGBA, else the reported GL_ALPHA_BITS value will be incorrect fot the context in the related wpt-tests.
We only need to change the internal format in this case, according to https://github.com/phracker/MacOSX-SDKs/blob/master/MacOSX10.8.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/CGLIOSurface.h#L99
cc @jdm


This change is Reviewable

@jdm
Copy link
Member

jdm commented Jul 17, 2019

@bors-servo
Copy link
Contributor

bors-servo commented Jul 17, 2019

📌 Commit 8a15cb9 has been approved by jdm

bors-servo added a commit that referenced this pull request Jul 17, 2019
Add alpha option to bind_to_gl_texture

This PR is related to servo/servo#23509.
If the WebGL context we use doesn't have alpha, the underlying IOsurface should use RGB internal format instead of RGBA, else the reported GL_ALPHA_BITS value will be incorrect fot the context in the related wpt-tests.
We only need to change the internal format in this case, according to https://github.com/phracker/MacOSX-SDKs/blob/master/MacOSX10.8.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/CGLIOSurface.h#L99
cc @jdm

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/324)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jul 17, 2019

Testing commit 8a15cb9 with merge 2563989...

@bors-servo
Copy link
Contributor

bors-servo commented Jul 17, 2019

☀️ Test successful - checks-travis
Approved by: jdm
Pushing 2563989 to master...

@bors-servo bors-servo merged commit 8a15cb9 into servo:master Jul 17, 2019
2 checks passed
2 checks passed
Travis CI - Pull Request Build Passed
Details
homu Test successful
Details
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

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