Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upMake GL/GLES decisions based on the API in use #23744
Conversation
highfive
commented
Jul 10, 2019
|
Heads up! This PR modifies the following files:
|
highfive
commented
Jul 10, 2019
| @@ -74,6 +74,12 @@ pub enum WebGLMsg { | |||
| Exit, | |||
| } | |||
|
|
|||
| #[derive(Clone, Copy, Debug, Deserialize, MallocSizeOf, PartialEq, Serialize)] | |||
This comment has been minimized.
This comment has been minimized.
|
Review ping @asajeffrey |
|
|
|
Much better, the fewer |
| @@ -122,15 +123,15 @@ impl WebGLShader { | |||
| }; | |||
| let validator = match webgl_version { | |||
| WebGLVersion::WebGL1 => { | |||
| let output_format = if cfg!(any(target_os = "android", target_os = "ios")) { | |||
| let output_format = if api_type == GlType::Gles { | |||
This comment has been minimized.
This comment has been minimized.
|
Rebase and r=me. |
|
@bors-servo r=asajeffrey |
|
|
|
|
|
|
|
@bors-servo r=asajeffrey |
|
|
Make GL/GLES decisions based on the API in use These changes remove a number of assumptions about whether GL/GLES is in use, improving the support for running WebGL in Servo under ANGLE. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes do not require tests because no tests on Windows. <!-- 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/23744) <!-- Reviewable:end -->
|
|
jdm commentedJul 10, 2019
•
edited by SimonSapin
These changes remove a number of assumptions about whether GL/GLES is in use, improving the support for running WebGL in Servo under ANGLE.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is