aboutsummaryrefslogtreecommitdiffstats
path: root/third_party/webrender/webrender_build/src/shader.rs
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/webrender/webrender_build/src/shader.rs')
-rw-r--r--third_party/webrender/webrender_build/src/shader.rs18
1 files changed, 0 insertions, 18 deletions
diff --git a/third_party/webrender/webrender_build/src/shader.rs b/third_party/webrender/webrender_build/src/shader.rs
index 331e858bdac..3c15f4f4148 100644
--- a/third_party/webrender/webrender_build/src/shader.rs
+++ b/third_party/webrender/webrender_build/src/shader.rs
@@ -170,7 +170,6 @@ pub fn build_shader_prefix_string<F: FnMut(&str)>(
// GLSL requires that the version number comes first.
let gl_version_string = match gl_version {
ShaderVersion::Gl => "#version 150\n",
- ShaderVersion::Gles if features.contains(&"TEXTURE_EXTERNAL_ESSL1") => "#version 100\n",
ShaderVersion::Gles => "#version 300 es\n",
};
output(gl_version_string);
@@ -194,23 +193,6 @@ pub fn build_shader_prefix_string<F: FnMut(&str)>(
};
output(kind_string);
- // detect which platform we're targeting
- let is_macos = match std::env::var("CARGO_CFG_TARGET_OS") {
- Ok(os) => os == "macos",
- // if this is not called from build.rs (e.g. the gpu_cache_update shader or
- // if the optimized shader pref is disabled) we want to use the runtime value
- Err(_) => cfg!(target_os = "macos"),
- };
- let is_android = match std::env::var("CARGO_CFG_TARGET_OS") {
- Ok(os) => os == "android",
- Err(_) => cfg!(target_os = "android"),
- };
- if is_macos {
- output("#define PLATFORM_MACOS\n");
- } else if is_android {
- output("#define PLATFORM_ANDROID\n");
- }
-
// Define a constant for the vertex texture width.
output("#define WR_MAX_VERTEX_TEXTURE_WIDTH ");
output(&MAX_VERTEX_TEXTURE_WIDTH_STRING);