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

Set the correct Angle GLSL output when using WebGL 2 #19192

Merged
merged 1 commit into from Nov 13, 2017

Conversation

@MortimerGoro
Copy link
Contributor

MortimerGoro commented Nov 12, 2017

Set the correct Angle GLSL output when using WebGL 2


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #__ (github issue number if applicable).
  • There are tests for these changes OR
  • These changes do not require tests because _____

This change is Reviewable

@highfive
Copy link

highfive commented Nov 12, 2017

Heads up! This PR modifies the following files:

  • @KiChjang: components/script/dom/webglshader.rs
  • @fitzgen: components/script/dom/webglshader.rs
  • @emilio: components/script/dom/webglshader.rs
@MortimerGoro MortimerGoro force-pushed the MortimerGoro:webgl2_glsl branch from ea2e150 to a2010cc Nov 12, 2017
const SHADER_OUTPUT_FORMAT: Output = Output::Glsl;
#[cfg(not(any(target_os = "android", target_os = "ios")))]
const SHADER_OUTPUT_FORMAT_WEBGL1: Output = Output::Glsl;
// MacOS Requires Glsl150Core because it uses a OpenGL 3.2 Core Context.

This comment has been minimized.

@anholt

anholt Nov 12, 2017

Contributor

Instead of a bunch of per-OS hacks here, we should probably be looking at SHADING_LANGUAGE_VERSION

This comment has been minimized.

@MortimerGoro

MortimerGoro Nov 12, 2017

Author Contributor

Great idea! I'll update the PR to use SHADING_LANGUAGE_VERSION

@MortimerGoro MortimerGoro force-pushed the MortimerGoro:webgl2_glsl branch from a2010cc to cc247de Nov 13, 2017
@MortimerGoro
Copy link
Contributor Author

MortimerGoro commented Nov 13, 2017

Updated the PR to use SHADING_LANGUAGE_VERSION

@MortimerGoro MortimerGoro force-pushed the MortimerGoro:webgl2_glsl branch from cc247de to c226744 Nov 13, 2017
@jdm
Copy link
Member

jdm commented Nov 13, 2017

@bors-servo
Copy link
Contributor

bors-servo commented Nov 13, 2017

📌 Commit c226744 has been approved by jdm

bors-servo added a commit that referenced this pull request Nov 13, 2017
Set the correct Angle GLSL output  when using WebGL 2

Set the correct Angle GLSL output  when using WebGL 2

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [x] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

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

bors-servo commented Nov 13, 2017

Testing commit c226744 with merge f1cf41d...

@bors-servo
Copy link
Contributor

bors-servo commented Nov 13, 2017

@bors-servo bors-servo merged commit c226744 into servo:master Nov 13, 2017
3 checks passed
3 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@bors-servo bors-servo mentioned this pull request Nov 13, 2017
5 of 6 tasks complete
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

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