diff --git a/webrender/src/device.rs b/webrender/src/device.rs index 2d8c952294..c857e01e2c 100644 --- a/webrender/src/device.rs +++ b/webrender/src/device.rs @@ -25,7 +25,7 @@ const GL_FORMAT_A: gl::GLuint = gl::RED; #[cfg(any(target_arch = "arm", target_arch = "aarch64"))] const GL_FORMAT_A: gl::GLuint = gl::ALPHA; -#[cfg(any(target_os = "windows", unix))] +#[cfg(any(target_os = "windows", all(unix, not(target_os = "android"))))] const GL_FORMAT_BGRA: gl::GLuint = gl::BGRA; #[cfg(target_os = "android")] diff --git a/webrender/src/renderer.rs b/webrender/src/renderer.rs index 0ac153a685..c6f8bfde1c 100644 --- a/webrender/src/renderer.rs +++ b/webrender/src/renderer.rs @@ -676,7 +676,7 @@ impl Renderer { fn enable_msaa(&self, _: bool) { } - #[cfg(any(target_os = "windows", unix))] + #[cfg(any(target_os = "windows", all(unix, not(target_os = "android"))))] fn enable_msaa(&self, enable_msaa: bool) { if self.enable_msaa { if enable_msaa {